From patchwork Wed Oct 2 21:26:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13820445 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2086.outbound.protection.outlook.com [40.107.20.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A4081D1316 for ; Wed, 2 Oct 2024 21:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.86 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727904395; cv=fail; b=fG8z4DKPK2oQ+RfoCSZ8cy9NjbrDCmnYTKq+o1GhscVcrQUog3v4V0X0VUw0YDpeyUIqSJ2UVKWOIXssOUj3xTkR1n+7nXLtFlYsVV2/wGSOT/ykiaXD/sDE0ZDWPXEsmXrHwjb6Ukte3IoUuKS1eFYIgkA1/hJ3UNRpbsl2E30= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727904395; c=relaxed/simple; bh=RrFhughtGHGhcu0r7vmzm8k5q/S7ogYk4JWHVrzciQA=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=rz6cvFQVgUavXsoLTqXSllDUeoK6vk2APhYM4rXnc69d4Cg1Z4qssZkPjSXf5IubAJA8a29woEUKu24CP6dZ+KyO/qpsuph4WEdE5Wd4V80SwhTI6w/ZGlEz6+8/ZLQ6ug6PtYmSSpxGwFHi8uNNJoesGWzkNXbBZTweoeTjF2o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=hL3cH/ex; arc=fail smtp.client-ip=40.107.20.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="hL3cH/ex" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LoU+bGHBYsqiqNLldgXXybnrjLoOap0J14YLNRFTOLYHaclCVXG5WDVAyM8FP7FFbWxftWCxoArM/lH0tDWk92yhGCqimKrMvfmN04kv+L/1GgdDlxBXhZalfgx5AQ5cwSOkLb4rFU7xyxKd27efLF6FFeTn11J7IjtsTzrxqwaiy9DODMLkhcCRlbIj4jete3V514hmlmgqW8/Me2MdulZwllKk1K25LM0bjz1VVRiSt0CjoDz+N+bRMaXNq9FBexHV/POphKwuQQdXMBW4wnrjdW1LT+d8xrk7XQCvyTLGINhI1UjHAualSzjaXqF9JMzlTN+lMvjudx3WY9pj2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MhV7H1pH/H1+RPhV3jA5HqGwqr94OUQqieIx8k8ZDMg=; b=R8Frb9/Aq6sB8/0fqpP/6sptNot5C3O9JRLhqrs+gCAahzYtBiSUkj2orG45cYcHALblYd0ZaaacAqpdFvhK9wK9lFBF2V0dlJjgYhsUx+O8xMjS9cpdLCk9UwFduR6aNcP970HFyXnK0xqgfdnseiMWEChnUIYFgkaqMbVbFR87+zlpLYrUITjT/y8j0PLb5JDtc7D70h80yh2JcFclHkCsUSYGny37394wG6quUHcy3uW62xf1ZzKurmhtt9+Ix+Th52zZD+3eKqHmfcg3IdxzQIhdos2VSiijYo9E19xJ9iDyLo0AxD9J/BiVS0HVgsn/QbxV9eOmxT1WchtR2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MhV7H1pH/H1+RPhV3jA5HqGwqr94OUQqieIx8k8ZDMg=; b=hL3cH/exwdVEyFuRdPfdJZKtBm/WpN3HccVwkaTkdzChipgOM74QLYK6xRXVkppSwqheBjI/WrXI5GA3YrDO5aYTcevSy1KTalCUg/0SX2qB7MTbHwb+IcqudWyJigs0oAgqNIrddtpUhkNJHXV8l8z5wY5jEalUk3+X7g/i02nH/W0Ml3weDQZztVK3AW/EhhOlb7rJPdiMgFecL+RQT72YSBKfrggQwuB1NsG+HxCH4l/OCAmsIfD4hGpCPu1D+oXHWVGwW+wvPKTVbRyAfH1Jjc5rocJOT4EGaCRGMwYzXNaz4c0dZGBIhO1PsrAEKMZ6scsbhFYfNkfOkGxaXA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AM9PR04MB8260.eurprd04.prod.outlook.com (2603:10a6:20b:3e6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Wed, 2 Oct 2024 21:26:28 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8026.016; Wed, 2 Oct 2024 21:26:28 +0000 From: Frank Li To: Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , linux-kernel@vger.kernel.org (open list:IRQCHIP DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Cc: imx@lists.linux.dev Subject: [PATCH 1/1] dt-bindings: interrupt-controller: fsl,ls-extirq: workaround wrong interrupt-map number Date: Wed, 2 Oct 2024 17:26:13 -0400 Message-Id: <20241002212613.599687-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR13CA0080.namprd13.prod.outlook.com (2603:10b6:a03:2c4::25) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM9PR04MB8260:EE_ X-MS-Office365-Filtering-Correlation-Id: 251a7e3f-fa16-4685-9d85-08dce328e046 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|1800799024|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: EWoNlgRM0SBh4QKp7ZotyFLbT0LO4pumnkw5/cV88SKwoTXfaQ5WtQGfeqtaEUhGvJhe5AscExL3XsMzTSnHj9VWTVUSyjpbAuZuioZwfTDIdnSpcIgtCgPKgUxna+VHQ/aoJjg9OTz9TJKN9WE28U1SRaaOFu213FH5RIAsf8U8RKYXa1+tVaJVzPCzIkla+E5HU6UQ5dq8wVQglrSXb5X1OKYmsqwct4bi3eHdHG9qQZYwYCBR3SO873p21jBMgLOjciAgndHomCSoJSl8CYxM5rpmkEsgg8j2O62enOfNCuG8tWXrmHsEcp4HbC6quHF14lhlhqu6hfRaAcZ4T/OkkaA/KVKD7ensbA3+n0OZhyNGHeMdtuNyuhIvhr9G2dcG9Urct1TvgXujkyyXAYjXxwu1dEOkPdCxybnAKgBpaJyayn4IkH6h1/VnWQQ/Ok33eDokAGaMZ4WK8QiD/5uLz3FBH9w2dE6G+13c68HSKibHnr8hkvszdc3wP3VGqSPPXhjh9Al/Ahx8PaeJ6QWboTAvBSurQpj1C5UahZBvDVSu5O+EpABKIp393ig8gD0sGQ+NvB+YrIxbO5p5S796BFis+/XOMu9ud36AkVJM5vahbWZgZofYeS8n0Z+pKTbpxpbKi1eRQXjGtVRJfIj67IVAMaLdPeX4uVTOQXx3OdfQnu6gKOae/mBLwfiQuYS2ak7oYJ2InZYw1OrPSlhYu8+zhgaleOlOtkBO/dkB9CekMVq99YKH94WzsKSEbmxkYqzQAgeEA+aHuHhDyvfwSz3/a83qJKQrN07JWH98Dqc8nw60I+k9V7RwZx2XDmaJFq80Cx/DJiw+fh83N/cg+vtaWbYU+OUCgBE+rFImDOll98fYrZdFv0pNrhwTJ9onwW59k/weLbgm+gxXc7x73XooqjwhRNRhTQwH93tYxH/cSXG4G6FAyosDxd+JB4W3cqipim6/9ResdcPq//w+T9EpWemVzWNDvkVcpN0Nj8/8MsjNr6FO+Qr8XpKicCh63z0YlcK+TgaNoFfAzt3Cwvl4i0BP0Qugx92GSnnnvVq6OuTli+xkb8CGYUZn3TJvSD+7pAXMcmWB/SAYNp4bHc0MnyS3tZErd0vRTScRAWvVytJwFIvNJWQPuFFg3AlBVeI5A8CF0CtABfUyqPai26yRuB1MJVjUgkwD5+tzNMzkGe1GCT5wGexM1fXat0+XpVY/BgphxOZigQq/kBYS2cbDNkL7DS4JV4S8v7jnCDcqBhKA9qIfHQyNip/CuJhePghwYiXTZOxZqbbtjGRp1GkTRXrFJwm5LTvgy/loiYFeGK43xxQot0/lbcFweVgbdgpW4LaAQ189UESvJQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(1800799024)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSp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b1BWUCa1kG0zGAj1ztVtBvmu3Fg34ScLl5m5uyMEGVK5KRBEEMd/GxyJREIROp5E6l3B2T+OWkno52oewlnjcE1W1n/6nKgcMs/mYBr/sV9d62NE4cvGP8ua+qRfichDC2KT3tR+Uw1Qx71XODY4VJbc7YJCAAgDlTK3lV9r42seNzl4F67m2kezgwdYvm/sy587lOTNMZKARsxlNnpJeGUQUGPT8IVnH+gDOjLK9wO0eH9SkdN2FSb7sDM/Y/8/4K7RFUGMb2FmvK6f1IM8ElTmivrmrD0MyB4FhFCZlR/1qjw9UlooVL0NrJvGmPu7FGFvT8q/Wt6RPIIdwsJtYtuvOcy8Oc0W+aHOceaQqFA7x2EdGLWeNuQLmCtb2c46oLAXin+WJknU7KAU147yJQxTuPSaiewZiQVa0uWim2OlD4KGIHA7sFh8MddrpzzjnvHXyqaJaW6R1wgGV9caYjoKNDtEH81RlDN62tRy7ufmTh3ZcbMse94CCCnpBPtpTaHbt6CS5uN5s8nPvDtiQgqg8XhEkQWD8n1UrwigmUSfWY4fOWcGflPBwEEU= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 251a7e3f-fa16-4685-9d85-08dce328e046 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2024 21:26:28.2137 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pBCACIlwTZghXTx6ktaSUX2amCBqN6MayoQFZ781o/dmzmmazSLo/QRosT9AK/CN/dysbZvxOxCeudjhCc7ADQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8260 The driver(drivers/irqchip/irq-ls-extirq.c) have not use standard DT function function to parser interrupt-map. So it doesn't consider '#address-size' in parent interrupt controller, such as GIC. When dt-binding verify interrupt-map, item data matrix is spitted at incorrect position. So cause below warning: arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dtb: interrupt-controller@14: interrupt-map: [[0, 0, 1, 0, 0, 4, 1, 0], [1, 0, 1, 4, 2, 0, 1, 0], ... is too short Reduce minItems to workaround this warning. Signed-off-by: Frank Li --- .../bindings/interrupt-controller/fsl,ls-extirq.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml index 199b34fdbefc4..b52abfd3e19d4 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.yaml @@ -85,10 +85,17 @@ allOf: - fsl,ls1088a-extirq - fsl,ls2080a-extirq - fsl,lx2160a-extirq +# The driver(drivers/irqchip/irq-ls-extirq.c) have not use standard DT +# function function to parser interrupt-map. So it doesn't consider +# '#address-size' in parent interrupt controller, such as GIC. +# +# When dt-binding verify interrupt-map, item data matrix is spitted at +# incorrect position. Reduce minItems to workaround this problem. + then: properties: interrupt-map: - minItems: 12 + minItems: 8 maxItems: 12 interrupt-map-mask: items: