Message ID | 20241225-scmi-fwdevlink-v1-2-e9a3a5341362@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2059.outbound.protection.outlook.com [40.107.247.59]) (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 BDDF015359A for <imx@lists.linux.dev>; Wed, 25 Dec 2024 08:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114891; cv=fail; b=VS2qQtPKrOYjbxb9AvUokn4NOOHl60xRPXO1bnzxEj0pgoLw0MSeZ4/GgB2/nxJiWol+carlmozkbR+i85Gfkuc3N9DWZlCtMSGnILSKCzXRPKkS1a/FZaXy28V/rRMtFNAfMQX0Peh+8QjClDV5sI7RmI2ljJniOlsM1Pp2quI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114891; c=relaxed/simple; bh=7iuIvV2m5IZ80SX1aloRC2aqgayAU5xjIlmGvZAHaFg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=rRv4Uf2b3FvfWRrOzR3sD5GV4GmrazKflYprZUMM8l8KP9wpLhyH8fd61wf/YmhlA3PJwZU1D/z6UFLnMGJBOCSfA+PIcg9mrVJLXPntjKimTCSmpvdJuTeb59exESdEocnTnQqBwtpqDEnM5WuhXKeTYrgJyzkDmfksN8icXA4= 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.247.59 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)" <peng.fan@oss.nxp.com> Date: Wed, 25 Dec 2024 16:20:45 +0800 Subject: [PATCH 2/4] firmware: arm_scmi: bus: Bypass setting fwnode for pinctrl Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 <sudeep.holla@arm.com>, Cristian Marussi <cristian.marussi@arm.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Saravana Kannan <saravanak@google.com>, Linus Walleij <linus.walleij@linaro.org>, Dong Aisheng <aisheng.dong@nxp.com>, Fabio Estevam <festevam@gmail.com>, Shawn Guo <shawnguo@kernel.org>, Jacky Bai <ping.bai@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Sascha Hauer <s.hauer@pengutronix.de> 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 <peng.fan@nxp.com> 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: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> 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+6nbiE9PYX609rABlZlU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E9d?= =?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/U8CucPNeWQ1E823EOiSvae21NWPOwiz5x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Aii03HNa?= 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 |
Series |
scmi: Bypass set fwnode to address devlink issue
|
expand
|
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;