From patchwork Wed Dec 25 08:20:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 853546 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2049.outbound.protection.outlook.com [40.107.249.49]) (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 D42DA156641; Wed, 25 Dec 2024 08:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114892; cv=fail; b=fjYjJVLOC7jG0b/beZkjTJ1mzF4/30FZjdClEMqwe8aG/JmIvJYUIpSw5fIKxCCWQ3Cy01imtGBCdOCag92gpudsFIBh7HffpzGKnDN6FgzwqZYWa/+zudv0iEbMB75+BqYcMWZLwHF11jBD/CIUENqnkYM87/toLn3Gb38C8/U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114892; c=relaxed/simple; bh=7iuIvV2m5IZ80SX1aloRC2aqgayAU5xjIlmGvZAHaFg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=cxEn0WAYK1xS49nUL/b2y22PTZjVUnuztUjX5P3mr5dYG/1L5YyCHuHVeHPKLaqmDK8o8RQsDI1n/TWK6pwpRs1knEjZDRpcPuwJ16ofc1Hutoy2qhhE5zJjHsfe+j9Qmy/WZhMZzRjBCAEpfBDUmg47sl43p6U4E0EgkkJK6fs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=E3SDPOIf; arc=fail smtp.client-ip=40.107.249.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="E3SDPOIf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CU80dJob9T1eAHIZwXdFhxxaauWxN8zC1RhsuRFsZj0MBIzIveUS6qa+4UeCl+K7qKxg0znOyfP7zY65A2iYE283q9UZFpZgT/9ntnu1tjMgMWfjahmezl6RIQL6sEoGh725cBGR1/1wfQuvL2amyj8Z4BrzqneJiYMy3exp4MwJbQBCTUgkO0iGPkeQ0An0PKdYGCLdQQ/v2THNc1sr1SOWE3xeOF0SL6v7AghEClDpA/6XODgAkqiDnFVHLyQmMgRe22VReOk36BU3K0uOQg99t8JfmZv9wgK90obzkvkqvYwD/CwN2/MCVY8kiyCI2NUkobJeRKhgOAUJoibRmA== 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=fhhg+l6MoCUoxwTXACUfTgJ9a/h9kDneVKWHJ+tjLsA=; b=MHX3XCjiNfYVGkq/S4o1SVCStxz+i4NnuPXmGS6d2gIYFB1b7zXwMj+zGmz1vhCcnhFsHRH46S627ATrshgjXAEWKICjywY+8W8wUCaYF9c8EFQzVXhz8HNKD+XAvP2lVcV3i2wjVQgI37y7uznKZjNkMPz2I+BqRKZFVUgukKds5m04HR4j0zqUk4pLJqhOZo7tG7U+akSGjcLBeWPXWybPQ2GikvIG4lrADLqxqrj5RqciJ3RGayuZdsFttUT0WBhnovCeEZETKu34/dmgXIZ/+dI3UxCx5/qruXOGjdfWkyRWuBcXhNIX3sB8OGP8U2N463KSGLH9LWwjaOF/aw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fhhg+l6MoCUoxwTXACUfTgJ9a/h9kDneVKWHJ+tjLsA=; b=E3SDPOIfKTldbAb8ObU2KGmyrvi/CVg4eJk/wKcR7SKW9zeJiAQJtwTkQERFC65qkKL/wMxi7WLFS8Aaj79VdbfCwOBWknWqGdQFXqlMvEbJZr2+Qqh5ealYjQjAz0JDwxhGJUEJr21ww6oqiAbwFs19HzIt0eKcCnMhLV27LjtBLuQh8/IAHhJQUVqXxfnx8HU7pu8aG5tMFhmIqkmKF7Zxv7WW6skFW95olfVu+5IwAHZkj7vYkdBKhUHXqRksm6LgO+z3RfBOUGx9g3B5Rz7SCZ0/7aGA59BySPYzn02DZiVusANDGOEgkfQL4pX0VV76c5ZqXZL2zxH5cof7tQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) by DB8PR04MB6985.eurprd04.prod.outlook.com (2603:10a6:10:11e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Wed, 25 Dec 2024 08:21:28 +0000 Received: from DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197]) by DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197%4]) with mapi id 15.20.8293.000; Wed, 25 Dec 2024 08:21:28 +0000 From: "Peng Fan (OSS)" Date: Wed, 25 Dec 2024 16:20:45 +0800 Subject: [PATCH 2/4] firmware: arm_scmi: bus: Bypass setting fwnode for pinctrl Message-Id: <20241225-scmi-fwdevlink-v1-2-e9a3a5341362@nxp.com> References: <20241225-scmi-fwdevlink-v1-0-e9a3a5341362@nxp.com> In-Reply-To: <20241225-scmi-fwdevlink-v1-0-e9a3a5341362@nxp.com> To: Sudeep Holla , Cristian Marussi , Greg Kroah-Hartman , Saravana Kannan , Linus Walleij , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer Cc: arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, imx@lists.linux.dev, Peng Fan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735114854; l=1673; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=5L5SVCOWRLjb9DcnHQJM5/G+cN8CxkyjHX/FcgJVNpM=; b=mUSvpY9QNF3HFPIL0zyrm19xgzMCePqlX96tV456LFxPxrki7GROAnhN5Xxj3e5gWnslDW4jy eg9ygHucmFmCLJCc26ZJbnzba84l9OngWW4ufrc5Ev0igfpplSAe6GV X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0003.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::20) To DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB8461:EE_|DB8PR04MB6985:EE_ X-MS-Office365-Filtering-Correlation-Id: b691dbdc-7b5b-43e9-4512-08dd24bd2142 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|7416014|52116014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+oynV8YYIyP+Dqnlt+bptbcyamOrVHu?= =?utf-8?q?ZDrMvN61s1Cr47GOsge0XJmFEAqZUnAsn/pWujoH8y9e1RFysRRu1/ybMlz1hQUIu?= =?utf-8?q?6P9l3NVCE0Dhu5787D5WlMo2o8Z3cd8FsTjzvO5ee2N50Y/tDFQeuV5FIs4ogpNnF?= =?utf-8?q?7bmSlkUX1d0m338uve9sf4dM1p3z4KFQcvdVXlh3jWxoPe9vXnlNBE8Px031qaLHT?= =?utf-8?q?gOncPAHv3wv+hKBdA7hSvbf9x/CdD2vtuIoMcfl2KBJCui2qLjedzM3/6z4rNWiOK?= =?utf-8?q?7L6ou3VpBPt135NfbXwhMGIFNY5iysBZUcV4oB15vIkoviUB7tMUWPO9+Epf5vvgG?= =?utf-8?q?jZ8MIqJK0r75PxGFyv/tuZVu5tFwwxkg5JodT4YPU+rEZ3yZdiwyzt/NnluZVggp9?= =?utf-8?q?DSJHU8Xic+fsGGUdazVOH0ZkeMzygY7JGTKhBFHGYYAbbGVl47omYFSS982baIIPW?= =?utf-8?q?16MBhwkRSYdy1BjKqDh+R0daa3N4JAy5xAJoqRUqH+6nbiE9PYX609rABlZlU2LpL?= =?utf-8?q?901OVWqyltu6dFDgx0iPw8MOc1AjL9TusklqwjwO/UrNkURvv7/wHal0E/33ocvxW?= =?utf-8?q?0M+VcuCpTcm1dcug0cWVzam8KHRU/0d1KGfzoa+4xV246MOBSP8/mb9Va0Z3RWN36?= =?utf-8?q?S+Q0F3TPi8KTv3u2V7yYjGj5mq+8FCHP9tkzPjUWDS+eXXXNLXCl+2TW/gE24Ny4q?= =?utf-8?q?I2yAVosVeL2I2jGgi3yUKZtB8SxLUOsDd2cwJvEuhIG8wXBcZSOG0MMSjzUrAJaU5?= =?utf-8?q?g416IWCQRiVc2gPVTZCrqAkT51xEwr07kZ9Y1+621h32EYqRgvEhEwZjEkqJL5z/K?= =?utf-8?q?hW5Ho8hNkp6vyo3UQRNs042UrRghDgoua+O1YJO7P0WeaOg8UFpFtpPwXwPLDIvNV?= =?utf-8?q?F04bGOxDYeDZD3Z4oD2tWIfCHRzBNLXQws/NfogUX5t85RWlSh8kaeo2b7V0sK2rp?= =?utf-8?q?i78QpfVpJZdYl9KMQY0HrzLtEAKIxUxclYmnJ0oTWFobcakq1jEC4idvnxgE6lpcB?= =?utf-8?q?lKW5ech/9D8Q97WaKzNguXE5JFbePihncCE+366Inwd34ta07k7CpIZNBSwfq59DT?= =?utf-8?q?pvKuVrhGuTtF3VCOP9culO6Zya6Yyd/aujfkj5rJYvjJ7zDECC26q2kDW5sA5GiPb?= =?utf-8?q?IZ6Ae54Fd6ADfmhvdLUci1TtQGYDfAyMuAZLZcoYi185Q2GcaZ8+Xng0ZPBQeDv+w?= =?utf-8?q?7UL9XwiW9uKwGWmxyxDcsWCfxMwsIdjNj2J/v9F/CpNeVvpWrnXPWnOu6Tg8tdSlq?= =?utf-8?q?r8j1u6G8DgL/nFE/jM6I6IpjAsstNTbwkwVxRaemjeA1zZv4jaAUIFCsMZWwJm3dD?= =?utf-8?q?j0dwlyzzonFsjqcCl2lmuX+EnRQNGhu8QiOHLmgzoPwh5nHtgNSf93NDuzmXcDE9d?= =?utf-8?q?mSFy27aCpiqpqOvvUNCs0Nv8zaEz9Ssiw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8461.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(7416014)(52116014)(1800799024)(366016)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?2vLcVKJTr9vZBab2mJoO0o5ZRHu9?= =?utf-8?q?T7KDRXMSf5oahHm17f5ctl6LxnpHX+sPnsxOhHEZbdHEUZfamFVmPg10xfustemaV?= =?utf-8?q?VS68sxtJ0V1XIzkveJniPxxcgsVyFEDCzBZ+RlsEHCi4ODn3kmnZqeOjv+usfVRAa?= =?utf-8?q?7RqMRhNnwWH13Y/dPMa53tgIpdmTXWl44FNBkXLykOWbmtOrV1bJUvz/mu5XgokaJ?= =?utf-8?q?91f+Glhb2xOflDnfP/wyTv2T4gM+vVc3NDipAsMoupAjuunf0VlImrVSpCaRVylDt?= =?utf-8?q?lFj7shV7Y39uqRBmFbSvwIUsJUSnJsjcSn1jISBmZmUI0WH32DE0ovR9mjiQ/AanA?= =?utf-8?q?9fejCuCqlQHQxdZAt56mnmpeKpT7Z0XV+Fl91TYb8BN207R1Xc9/oaVqGuyRKoshH?= =?utf-8?q?qufj4oq34UJmqInXH7bimrWC0twBWdesn8uTgqOllQ6v8vGOIJHN/ToERM4zg1V7d?= =?utf-8?q?uYTKyj1jVyV5//3ZDqp2B++5j802ohEpxFbq8df0veH5WZwhim9BidUPJEcWu/Mkt?= =?utf-8?q?hIvnyj/Z7mMo3un8XYfVYgp4NI8qTIlVmkcw01P/3+BletxRBIpTfG8YYm+Sud30+?= =?utf-8?q?c+MiHU+vSSKvfQE34N6oi7MBpF7/U8CucPNeWQ1E823EOiSvae21NWPOwiz5xBl+g?= =?utf-8?q?y5SoC1RD7tUAIps88tKOvG62UgDbIjXf9aIKaFO2IfchoAvi8DgL/bmcCTLOeXHyI?= =?utf-8?q?RT5JazHnqOd03xJjxp3ni91Y1V3d+rH7olarrFVTewk0dpobaT+IqhM97d1xkOMSR?= =?utf-8?q?mWMjRaxMFNES0k9CDxIk16DqBjieHAi5ldU244JjCTIg6HpfajVITUJh5BRo83gra?= =?utf-8?q?+1C3JMfVjibNnzsymE8wU5OpPiOQOa7drnsMxDUfsNcbuNNkUbCMNVIG6Z8xhEgVy?= =?utf-8?q?my61WIddAX7xK1jyKmMtv4wpb92wOb3K2K/qzBRfHkLwnSU0Z+NyDqHDLEezUc0o7?= =?utf-8?q?UzCUqgb0hEisv5+NtQI12VHRS5bzTKy44os7Y/FvUI6U0EcuJvqs6VM3EoSRMdVHj?= =?utf-8?q?EoSt7m0aNgg4BdcGmnCC6cUCFRTDfPtlwrwdMmD6+0pO6MjSbige40tNzy40Ng5a9?= =?utf-8?q?tamJslILdpNIsuW8+mvp7/GN+TE5q/yUyfwO2su8cFw4w7GbJaCNHre1jzINlU8Lg?= =?utf-8?q?iv5f9zuCx70ffLhbA3ytfWk2e+j2kPdzra+mWvWvsgHUQy46EMfeoGL2BQgQcE/vh?= =?utf-8?q?3wo79cQPJA1z4BuC59SFZ82LrA/GaM40Fjm2tXZZbl9fXNLhnY51bp4HBCXxHpwPZ?= =?utf-8?q?Z4PTkSP12ITrEuBD500Na6iJyzb1g3JVwyN7WUfSvjldRuzChrCq6CwfhqxsuK5fB?= =?utf-8?q?XtpwUMl7DGGfG1LLjcmDsEevR+8c6DDMwbU3LsmxVPdKHyEC9t6nllr/3AsBJBKrP?= =?utf-8?q?945fLMBOwW4etxBfm1pZZJpYnvZ3huBZGn5CPDYzZq9pOyD0zBErcvUfft65eldv/?= =?utf-8?q?F9BIdzHTr8qzCUdsP27PoINhsnwXhsTywfI/h0id7jcxg6jMTY6+Y9anB+8PRCfbm?= =?utf-8?q?mzCXAii03HNa?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b691dbdc-7b5b-43e9-4512-08dd24bd2142 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8461.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2024 08:21:28.2773 (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: xZppLKP9pkpwI9ff/lm+ofeDJlAIMZbBjM0t1P9jlaWIqSEOH3J2ddUjUEJaj0exsPpZfMfdJv5Ap4l/YNqp9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6985 From: Peng Fan pinctrl-scmi.c and pinctrl-imx-scmi.c, both use SCMI_PROTOCOL_PINCTRL. If both drivers are built in, and the scmi device with name "pinctrl-imx" is created earlier, and the fwnode device points to the scmi device, non-i.MX platforms will never have the pinctrl supplier ready. So bypass setting fwnode for scmi pinctrl devices that non compatible with socs. Signed-off-by: Peng Fan --- drivers/firmware/arm_scmi/bus.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c index 12190d4dabb65484543044b4424fbe3b67245466..87665b09c8ff492953c8300f80ed73eab6cce4fd 100644 --- a/drivers/firmware/arm_scmi/bus.c +++ b/drivers/firmware/arm_scmi/bus.c @@ -345,6 +345,11 @@ static void __scmi_device_destroy(struct scmi_device *scmi_dev) device_unregister(&scmi_dev->dev); } +static const char * const scmi_pinctrl_imx_lists[] = { + "fsl,imx95", + NULL +}; + static int __scmi_device_set_node(struct scmi_device *scmi_dev, struct device_node *np, int protocol, const char *name) @@ -353,6 +358,15 @@ __scmi_device_set_node(struct scmi_device *scmi_dev, struct device_node *np, if ((protocol == SCMI_PROTOCOL_PERF) && !strcmp(name, "cpufreq")) return 0; + if (protocol == SCMI_PROTOCOL_PINCTRL) { + if (!strcmp(name, "pinctrl") && + of_machine_compatible_match(scmi_pinctrl_imx_lists)) + return 0; + if (!strcmp(name, "pinctrl-imx") && + !of_machine_compatible_match(scmi_pinctrl_imx_lists)) + return 0; + } + device_set_node(&scmi_dev->dev, of_fwnode_handle(np)); return 0; From patchwork Wed Dec 25 08:20:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 853545 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2049.outbound.protection.outlook.com [40.107.247.49]) (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 00C1418E028; Wed, 25 Dec 2024 08:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114902; cv=fail; b=RFKwh3roYj+PM9UhM8CNe/JMjMCww73Iud3K3JUBQNh5Rmd5WohXYENCci1+Vfo/FQ60ljmsBhKT/rLYf8sLB1wREOWkBC5N8C5obElH8TNPp42am9pQ/+GgvyFILcBOpkY43kS5Unik0QW+6Wl3xtxZoWjvcdB96pwFNNfpIP8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114902; c=relaxed/simple; bh=B9UmoanG/iyX9ITVIsH+kcW+rPiNsQMH34VSNLslU9M=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=GzD8RNX7sNj13xIMhl9JsWLXq558JCBbJWZdU2IjTWRfPoSY1mTQc23uukWleyDjoqelV3JhluXkMXpIOE/aBpn0Uuva7/xJw9/pviGSAzrzLiH4uoLYVT2XfNxo5X1Fd6Tui4zfQQizQGx7v0hxIR2VTEEJSCxclMzB9v8TD+I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=bFajG8mY; arc=fail smtp.client-ip=40.107.247.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="bFajG8mY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Mg51SzQIqNXRDfUC/N+gBirlI1pA2G52eu6H64SE3U/Jqpr9/JvS60Ah/ia3ePWhx6/LhedyHoQ6Zu2Ev3U0VK0fYVeL7sHsx4XLQiPpR4jXLBUT9XTFLxfG0HedxypjfVnLqc1IhFNVaH5NkxcU3tda6q9eVrP2qYXkz7tuALfuo6+focTsvzptJlNLUPPK7MZooIjdBIBQ6emX/mNStiudLzIF5EzAcVsVYBqvARbIs44EiYO8Epuqq1jOgf5Mq5CvwNRlEe9bOy+Pit/Q90Pk7wBwg4Qw+wMh1Owd/bX1B8ig+G61/Sbbw0DY1X6GTYN3vFCqj3X6Q+6+HP4FuA== 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=C5DRiVkBY/Qmj5Xidop8UECBk7ZmAsnb7qNwdiy5bY4=; b=xKSZEbfaY+IP8pdu08QytQXl4znX/f0gjHsOiETo+FkGv2nPRfECJw0vODm+4GJe/yHy5U830WhEpFIsoZgT8GC1acJ+TYD2IRTWMEkr4dx2dI9AAtW5Uxpcm5k/NoGPt/guzCL/9dS7EY8i9E9r3ltVrThJ/mQi7tP0BsGbzc3lroqUC6U8mcM6KO89aKzumxlxPABImnwkGIn59B4gk3Cqy0IsaQofOlLafXTq3GPXoB+dEhsno+paVrJXTyrlUXtr9s25WybNigL91CiXn6D1ikNSsZ6ZIRdtAkzUsBmWM0RO6gqKQFY2j5inVw78835cnE4ervU/9eQGi6nSow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C5DRiVkBY/Qmj5Xidop8UECBk7ZmAsnb7qNwdiy5bY4=; b=bFajG8mYHqOlM70k9yjppPRRnOL2oMBL72QeUAJE8VNMDjJGTXQMTZr/ZtoPKU3gjU51XiOZCNVUHHYlgGFObJOkj8pa9UeZkMSJ4sfbw0Bh1qOVcB4baZzoPz03fcYS11pK8mc/zV/zvYo/fYC3EGH03UK4RoyzinsTU4TammtFPBUoTF7DyQGJ5TXlSxhEWg9aqnIiof1kICt0TmNKSgidTDCiMqCvTr4YTS22NWczSn/63ieunI3Nr8U2X9iZ4E8VJs5/jJspufG2UfwcMhD09mFVJ2tkUhKyPaqtHNUVjmnsY7CAyfOHlwub9YFjkbgfO6WW2GBcAGOSsjCaxw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) by DB8PR04MB6985.eurprd04.prod.outlook.com (2603:10a6:10:11e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Wed, 25 Dec 2024 08:21:38 +0000 Received: from DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197]) by DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197%4]) with mapi id 15.20.8293.000; Wed, 25 Dec 2024 08:21:38 +0000 From: "Peng Fan (OSS)" Date: Wed, 25 Dec 2024 16:20:47 +0800 Subject: [PATCH 4/4] pinctrl: freescale: scmi: Check fwnode instead of machine compatible Message-Id: <20241225-scmi-fwdevlink-v1-4-e9a3a5341362@nxp.com> References: <20241225-scmi-fwdevlink-v1-0-e9a3a5341362@nxp.com> In-Reply-To: <20241225-scmi-fwdevlink-v1-0-e9a3a5341362@nxp.com> To: Sudeep Holla , Cristian Marussi , Greg Kroah-Hartman , Saravana Kannan , Linus Walleij , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer Cc: arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, imx@lists.linux.dev, Peng Fan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735114854; l=1266; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=7eG0vdViAcWDMFwtbA37HE71/cQbz9oKqAxOOgh/B3I=; b=cLKqzw+LzGbMbeOHj7yW2dtjr3VzNTWL+phBGvS3G1CzKImJQ4GFfOFhqIYFN7dLV2gd3Ff71 hlcHNN3vSw+DqQKqgXE/mG5faOEjXaIGrXwHXzG0P+Rw0qhGQKco8Ia X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0003.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::20) To DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB8461:EE_|DB8PR04MB6985:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e397cca-342c-4b2a-f7ba-08dd24bd2737 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|7416014|52116014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?qVDdPJFogCE/MrXOu2uTSf3MlQ+NXgO?= =?utf-8?q?9QWmzq6h/T/jciWpduqJ9tv673lBoCywWRc/3NvzKmGfIRewTKJwFWxQL2+U+jYaG?= =?utf-8?q?p1TJHjCUm7vfm1SABEqKoeGfj4cY2a29MMTZrrwHB2AppCaqD8XwK0ztv+nwC/wED?= =?utf-8?q?rIZE8q6/UkisfjQmu2gYo/2NY0svkYMxs10hfHqO+f2t/kBnQpWQQDP+WN7k5G7fs?= =?utf-8?q?C/e/iwTkpTOeK6iO9ESBSEfqvx8BRzAnQCyQObEjC3AZ2Bl24aAxTxx4hNGDwNCuG?= =?utf-8?q?r8OXgN/4zbnfj8IgMSShGPOP6hnZnIdEtBW7/o3KWqSByUA5kUFHq2kLxQI/PH91f?= =?utf-8?q?/h9QK5II4fQ1Qp1P68t+S1vzI1fFgZTgNZbuIYw3JkPTyQkKiLGVzL0Fp4yVKn8AF?= =?utf-8?q?G0hfHKtLDEfkn9LLxQrBuGFZqzFOjhypZ3OgUfzI0NPYdOQjCcewr8CVe3UtquAB1?= =?utf-8?q?hHAmzkN5o0lgZ0Cf8qWADY+qeRBRtiqiooUf62ni+tXcyr4DCxFF2fpGja85XjdYz?= =?utf-8?q?S415uOypMBXivjjhivpQQ+TYhh53l7eCsl+r25fnGG3/loU4rrN++l4Z2/xymB5DJ?= =?utf-8?q?VADMhsOYAHkUu3CaEQch9l7sP4D8X1VojjQzfC6tSQ3XC2RT1UThjIa0CKseWVhFx?= =?utf-8?q?Puh1kgBcpC3NcaeC42xoaKelrGFZtZtbsmduFzMj5aLRpsNPO9mNMhJTmGB88Im4v?= =?utf-8?q?SjD1e0atiTDWIM/dPsQx7pbkjeBkndv+NHjKWMnAH+INMQvimczY3dnO44IBVyA7U?= =?utf-8?q?/Ie7D9/Sx1Q3idgEnaJu+LSaZ2M5kCk7JriSNYiDFBZlSOGZrm/Nb6Qn9g/PRQm9c?= =?utf-8?q?X9m5gX+QaMOchK2ssHkoJDYtpJOcB7NFCoq/BpG5s+4YC3ZtxJNbCzlcx3j3Mf9CX?= =?utf-8?q?Zwy3g1F0JUX51j4PtwkO90I6btcyP4do+87d7NIiviAiZtO6YlM02hSApQioei86D?= =?utf-8?q?CWnx3hlWWNGgRETuMl54mHWEauL9yFpTLZiT7Iqa8IXWr8ai2W5U3PgBoSGzf+fB2?= =?utf-8?q?oGp372jLQIXagJgawqq+nFZX9FIPnPL0Kf4dL3p54bi9NllVZ5ztVdxGITTwzd4/f?= =?utf-8?q?oZMiAasxKjeQzJrGlgAFV3sZf0eXmrUrISYQ+59sdrGixjE3zQUuGrE4LxUlQMVdL?= =?utf-8?q?3bMPo7SLnTcy7xWESaXlqKn7PB6BitHmZLAwrxKU3VEQXV1eRYoCqj23UGcG0GPSO?= =?utf-8?q?utdGtqcubepRk2JuDK9T991LZcD1z4aZA6cSYFvSfNvRnHEr2ZeqrDNDL3HCzTgbR?= =?utf-8?q?+8V8EzRof7GySkjZcc9oQ1znIXZNBTR/oQvXLv27AVcIhyGzTzu5e31z0Sx6Eptrd?= =?utf-8?q?VJR0JTBKnrUi0QIQH82Q8BHcACXcc/eDEmoLWcVe9uo/AppUEuLyDMPWyafOBXmrf?= =?utf-8?q?JqCG3qofTkm?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8461.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(7416014)(52116014)(1800799024)(366016)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?6++3Q9twts9oW5xtj4jgRpiZy5Dy?= =?utf-8?q?1z8kMmo3wP9l8TS6xY3G835OH658yrMcBVxzHlBv9aqimL53LNCVgpcOR32vWGxXk?= =?utf-8?q?f2pT474KZTXE/DUVYgZAIIqUSZtI9SEAVyCMFaBNtaY1VSGpYheYZ+mux1gO0W5zb?= =?utf-8?q?DXJ+WGZqP5UnpV5V/ZIKW58loXTetj+nXSXWjGi4IKtLl1W2pHY0clq+1s2Fhx1t8?= =?utf-8?q?+LR4hL7GKxB+OhCYxJtKGAWl7hOJMLGx8bGICOu3fLMxwTdSTLvohlDRFdocbT0hz?= =?utf-8?q?VEEXCi7Vlp4meK9NFtCdwAS5jr8buA7mBGc7mwvHwEkq/agTawraPwLrYy0/TTGTQ?= =?utf-8?q?vm+U4u0zRxPwRRs9p2f4Y8+20K0WwU43SY0hBYrNvQAEYkN9Y5zJad/Y9E+hQKbSx?= =?utf-8?q?BSca6lepPadsxaGeeC6uWQbgGOgQx3G139oHNgHrjSFH01HIR+3G08oilsbE9G053?= =?utf-8?q?2nyCjAu1bDg6cX4NIcCqWqmHDNhUh7QhrzwsVWbB/4DujS0YheLrs5CiZXntDDLva?= =?utf-8?q?9DVVKu/g1wR/k/qmWdj8n1PQDU8RfTsOvs4AlHmQWOq8BWg7YtOvOATLSfqGTVVge?= =?utf-8?q?sNNVnwwW3qnCzc1vjms/dibE8Uzcerq2IRzKnC0zkdJgRBA9njQAbUDJxU3RjDQ40?= =?utf-8?q?G3swMOxF59jIi3Bl5jYwvYcezK9r55v5Gx7SYFS99i/iz+0AdV4jvNVeosI3v7GYB?= =?utf-8?q?8flrgcNQRR6bqW4GJmn9DNSILkCFw0K8FRymi29Wqt35nkVkCBvc3+1dKUP5ZjiJ6?= =?utf-8?q?uATkd/bE4PjaNh0NFBBmTv9akYIeLCwPayfoh9ZrwioweYWR6ypsGre9OFoGACK6q?= =?utf-8?q?IcLjG6/J54ZPkRLatYdngOcj7TGMrkTAs75wvuuFafoFAZAP2c70YPvzKnp+zvTDl?= =?utf-8?q?vHp+rce3W9DwzcR8VA4csBNKK4mW8A6iGKoEQ+Uz/2nfAXdh+YrV6s2scXMoSgyTc?= =?utf-8?q?m2nmGIxXeDkxz93moPnnvSK/0WU9hZ/GowQLmwqRp9ja9xLgmv9UEicapq/1a00Fb?= =?utf-8?q?0MpRf7juMmqFkTxbnUar/GhRvpYWqUL8PiGNMvGWf3I/Tg5pHGGZnr4WN1RUG/Cmt?= =?utf-8?q?IgurrTXXCkGjk7avfTxZBAw7m453b468bB39fzyc/JEhdrjMJUtW4vWULiO2pV4CW?= =?utf-8?q?N4vZYlFmUlPl5r9w6VAUOhQ716/Re5e+VWbMrUfpe1qZrpNOPBWmsQhPD83ABWHmT?= =?utf-8?q?xpMtaOVJAlcNkQ1Ttr/EJkl0aSlMEAOgAUZUS3Qvh/mbiN9wsN4uWQAmOrxYdCisr?= =?utf-8?q?MNzSS7d2wVubfmwI0o3XdcBDricnl2r6dylG/u6KBsJ71W3P5XeoG/GjjAQhTX1dK?= =?utf-8?q?YldOwFvmNU3a1muvjJecosmVUXnK87GpMH1slCY+aMWxPVF6OjdYEhe4OI4B85Mk2?= =?utf-8?q?vqXVcnRY6qg942o+USl3rfA1aqb1rJnzWbIEpcoRmt4Qz+98EA8YTAin/qsx95IaW?= =?utf-8?q?BTucqWJEKz6sN9VDA2tv75j5w/i/oGdkL/aeKrqvA2fkfC2OX3+gtZiBT/3t25/69?= =?utf-8?q?XSGzh0CjMOU2?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e397cca-342c-4b2a-f7ba-08dd24bd2737 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8461.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2024 08:21:38.2799 (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: yQ62ZNGJNnrecRBKfBALn7MdgWhKZTW4K/wkFu8XLb17Ju7upFQJATTv/viyVbiwecBJuW9gbqjQTwa8XGgMiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6985 From: Peng Fan For the platform that not compatible with scmi pinctrl device, the fwnode will not be set, so checking fwnode will make code simpler and easy to maintain. Signed-off-by: Peng Fan --- drivers/pinctrl/freescale/pinctrl-imx-scmi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/freescale/pinctrl-imx-scmi.c b/drivers/pinctrl/freescale/pinctrl-imx-scmi.c index 8f15c4c4dc4412dddb40505699fc3f459fdc0adc..5277d30af7084b9bbf83e3523f09c8136d41705b 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx-scmi.c +++ b/drivers/pinctrl/freescale/pinctrl-imx-scmi.c @@ -287,11 +287,6 @@ scmi_pinctrl_imx_get_pins(struct scmi_pinctrl_imx *pmx, struct pinctrl_desc *des return 0; } -static const char * const scmi_pinctrl_imx_allowlist[] = { - "fsl,imx95", - NULL -}; - static int scmi_pinctrl_imx_probe(struct scmi_device *sdev) { struct device *dev = &sdev->dev; @@ -304,7 +299,7 @@ static int scmi_pinctrl_imx_probe(struct scmi_device *sdev) if (!handle) return -EINVAL; - if (!of_machine_compatible_match(scmi_pinctrl_imx_allowlist)) + if (!dev->fwnode) return -ENODEV; pinctrl_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PINCTRL, &ph);