Message ID | 20250120-scmi-fwdevlink-v2-4-3af2fa37dbac@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazon11013047.outbound.protection.outlook.com [40.107.162.47]) (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 A27251922E7 for <imx@lists.linux.dev>; Mon, 20 Jan 2025 07:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.162.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737357287; cv=fail; b=ZEIRFvccnwRsny41WTni2NIl0vT22sytuad8x66eeRr/DUg6rnyVwxwE2Trh0PVO3yNFlhJhOG/H9OtCaCh2s6tZey/nQGmOOzdw6H2Lu+p4CTO9WktbveNaS8LTSTRtn9gLT0N6qgMKx/a3H9zNGRmLj8fpD0tJMnpYZTP0Lmw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737357287; c=relaxed/simple; bh=nkl5d3YY/qHLV7k8ahkYMZBbTm/SeFBorP6JxzMdbTk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=nzVY6YbpNTcFMfv3GgP1nsvsFvxZwUvq6Gjpev+0hHsCiYMXd/8CjWwXR8TM83WIPE1i47i3i6STbxNX36Ug9P4hioPnfV1eV0kocLnmFYWplqdHFb12xIcKZCFOuTb3i6ljCuZF6OhNZ9uIfzdlhoL8Esbw5Gwaq452fC3RHMo= 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=UhS0AXxC; arc=fail smtp.client-ip=40.107.162.47 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="UhS0AXxC" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f3b4cwnVJHOCM1fyQQt75gvGB5ScpYgZ3qFqQwY8DWElb6a59h2QnakUmWipgXjVqGCrFO9Ycr8xCcUbZj5sTFDXb/hvVrakC4RrXojkfDodpnG1OqlXVxWPN5wSbtAuz9qEprw7IzyhxGf2Zf39TkB8BQQMsPbekDg43rHCZJE0k+coXgSFjPu9fRTM4fgf17Ek3HE+vEirAcUORrjCnzbRBlPBp3r3PFSMGOIcV4tOX9pDMsTmbHemA6JyOBCvx9xDMRaAbWdwnL2w2iDokOZ35bOdigo4pyyXbxfNKSMmsjArs7yPSfKmOcrT9tsGQSDYnPQvdV/xgc5UtOW/qg== 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=HikyuC85c4OtraaH4/n4z+kHD9b1BNSNvuSvTdQjvkI=; b=hdbbgsKdVKOieERjBFB8vdRkaPCdB5lNZMUqC2J4ZW7JMS8DcbENlWHvFncN/sGr/yh7n+kPnHMKRdz7HrIxAWkwn+EFRVtOW5SjBGnrCvRnhon4cVG5R/rrGOFGhBdFw6thLRnmgS0VKusu8k11LfoM4kC9iL3zYNggIEh+M76jIR+0043CHx9yYQWE9C0MQWHsc18RBLPOqCurKtG2Q9aGzs2IIOcTFp5kDaVdnyftYuRsjpiRZ2rym1tR+aEZ1FPj37pR+AOiuGx1ZAHaKgW9yCaLNFC2JHz5IlkL4HjQWlf6Ym69iOU/L5fkmytSHDhK3dCsajeZLeNOFnSyAw== 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=HikyuC85c4OtraaH4/n4z+kHD9b1BNSNvuSvTdQjvkI=; b=UhS0AXxCuP+8AJ94DdiF+QEpP7PZKAD+wrWBhU3TOcBsZhqmAdbqR6AFEUpZAPrk71pkQhi26U/oR2BAP7fgcbSbo8KDSoZCHABrDTgeRwZ6zIMS8g7UUn8OJZ1yRy+uYVfMi15ZHtHyXFYN7ejR/me4Dyhi9SfK6xMXlaG7IcPmx83XdNkQZBYs6WDEj3hYt75z3RgYjs+pwngRxS5Y2IKpwGyZjaPKnFoMVuLbp0AxppbD3cCoENIwQRqdPB1GXLiZ/0CrKcroWi7+Eh1DXTzqG0qSFY9s+G+MZzxbmJ20O6Qun+5yBimy0K6l0ewLj2d8Osktcm1I+g5ynLT+WQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by AM8PR04MB7778.eurprd04.prod.outlook.com (2603:10a6:20b:24a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.22; Mon, 20 Jan 2025 07:14:43 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 07:14:43 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Mon, 20 Jan 2025 15:13:32 +0800 Subject: [PATCH v2 4/4] pinctrl: scmi: Switch to use machine_blocklist Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250120-scmi-fwdevlink-v2-4-3af2fa37dbac@nxp.com> References: <20250120-scmi-fwdevlink-v2-0-3af2fa37dbac@nxp.com> In-Reply-To: <20250120-scmi-fwdevlink-v2-0-3af2fa37dbac@nxp.com> To: Sudeep Holla <sudeep.holla@arm.com>, Cristian Marussi <cristian.marussi@arm.com>, 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=1737357232; l=1588; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=y7Jz62QD/LOAhaSVNi4OjY5Sw5Y/G32ouDnOiFpe8Ls=; b=fG648whABDouqN4JkTlzP9apGuFyMly2VDnFJtrGI9WX5yafoZQaDqiJZbEzSCKOIu1qgNFnJ Qx8k6znkT/qD7ymvWCrjSw/CjPNoHiE3oPFHrbHqhOPxK1Pg12V9w/7 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0129.apcprd01.prod.exchangelabs.com (2603:1096:4:40::33) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) 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: PAXPR04MB8459:EE_|AM8PR04MB7778:EE_ X-MS-Office365-Filtering-Correlation-Id: 4530a3ca-ce49-4ef2-e484-08dd39221d1b 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|1800799024|376014|7416014|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?9L1YeQzIkgl/G1IDVjkPk8FFfSz7Z20?= =?utf-8?q?YI8YEAimoqHddZsPRVQrlksE0hMVwkHsi6b6YWr3+nDpSOpRnbstfgbX2cF7eGSeb?= =?utf-8?q?cp2vAMyLyIFBadt3LfYdYnG4B8Oi98ua81rgN0tP8oKP3nOsX46AJ6NlNWKU2dJgI?= =?utf-8?q?JT4/ysYi0gs4t1+4TyZ+Qf5kjO0EVAZoHz7qyMeOHQBVLHT7WPY4aB7D4kuwZ72rU?= =?utf-8?q?0xiK6HOKhNDKaRGnjZ0U0aBoUKUj9ORMNymgPfbEsFeXcluSbF3VBSppTq6v4HGrw?= =?utf-8?q?5TrYaBS9BTBiOIyI7z1EdlNKeSwq3migyKHWkMlSWl5k/Y27fDI5W0yFqV18mypUc?= =?utf-8?q?h+LPax5ulmBbPV98kjXTgqw0ir/b6uZXcyDqZanMBvrRGMNGYzAOvq7iJhmO3azpG?= =?utf-8?q?0wLvP8rz9Jo22kJc+dqcPSHUCRl9Wnc4oPrqbMyyGF7vN8/lj0qVhncssgAt360P2?= =?utf-8?q?wNtWX630UAzXhKISwBiG+pmlkSkpnsktasC8gLfW9IKYy4L+sewEcodQNN+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?q?KjbhkfEywlF?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CDmOeUqj5r2Yhgb+lCMcfRYW49Ex?= =?utf-8?q?LcsQEWRb0nacUObtKlcYr8clga54i81InG355YcrQ1LE8XI5YZF6YsgTFLSSjkhSR?= =?utf-8?q?NXo6hEG5tODJ8uG2Q1gBFhV4sNyw9YUuuhuIM3+TXzBlPC1ZKI0sCpcjD1fxq4f+C?= =?utf-8?q?R32ArFi0ncPeK0nGy9JTBxKydzAkAlgpjlCPzNNGPnwmRx/Icfh4dkB0iiuJsEd2a?= =?utf-8?q?ugQSaqa7iMXBAttILhvM0+GE8JgTavRIFszDKw/MPeRzbtSFSuscRGqU+zDVKMnTr?= =?utf-8?q?i5cz8bMeRWjjOp9Qh0qCq2lVpcwAx/4a9iBEp6Y+zmrqZwuQDRO3FvRFg1nDgrD9M?= =?utf-8?q?cZL5B1UZ+hFyXYygTIaW1G8V+eFdG4xe9OnMBxGHCWp1p1ZIOFj0kxlgzN4kHLEyx?= =?utf-8?q?laF1gCUkUF3oFriSy1nmRdaCy+2WZNYsK5Oeh0SJdlWqBxAh0+5AXXEqhrVG285V/?= =?utf-8?q?xJHaQyr+AKc6lMalCOqYFQdGT8/dWFFq43uuYYwJG36EFaxspBFeXXt8pipckqJOo?= =?utf-8?q?vczWrTD/k6im5Kte+HcVDqmR7lUmf44rT/ScSF+5Rlz5qFNRGOZMQ7jscxIQpsmc5?= =?utf-8?q?c3j3La6yzFxTqGm/wsCcYxLQE9Ts4Vk3CZ5QhaEk0vD0VIT0mdIT/+lNrPHFXg2wL?= =?utf-8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8?q?m/iCOf95jyt2?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4530a3ca-ce49-4ef2-e484-08dd39221d1b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2025 07:14:43.7644 (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: Vbepuf5AUcIyZqx36fN3xfH4qvz6q0ewqZDC4tAOmm9c67LeMKBxjlFHXedr7nMNOISh7+3J8fswAsrF2shgPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7778 |
Series |
scmi: Bypass set fwnode and introduce allow/block list to address devlink issue
|
expand
|
diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c index df4bbcd7d1d59ac2c8ddc320dc10d702ad1ed5b2..f041478758b50e85d99214f4fe42208d0c8c808f 100644 --- a/drivers/pinctrl/pinctrl-scmi.c +++ b/drivers/pinctrl/pinctrl-scmi.c @@ -505,11 +505,6 @@ static int pinctrl_scmi_get_pins(struct scmi_pinctrl *pmx, return 0; } -static const char * const scmi_pinctrl_blocklist[] = { - "fsl,imx95", - NULL -}; - static int scmi_pinctrl_probe(struct scmi_device *sdev) { int ret; @@ -521,9 +516,6 @@ static int scmi_pinctrl_probe(struct scmi_device *sdev) if (!sdev->handle) return -EINVAL; - if (of_machine_compatible_match(scmi_pinctrl_blocklist)) - return -ENODEV; - handle = sdev->handle; pinctrl_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PINCTRL, &ph); @@ -561,8 +553,13 @@ static int scmi_pinctrl_probe(struct scmi_device *sdev) return pinctrl_enable(pmx->pctldev); } +static const char * const scmi_pinctrl_blocklist[] = { + "fsl,imx95", + NULL +}; + static const struct scmi_device_id scmi_id_table[] = { - { SCMI_PROTOCOL_PINCTRL, "pinctrl" }, + { SCMI_PROTOCOL_PINCTRL, "pinctrl", scmi_pinctrl_blocklist, NULL }, { } }; MODULE_DEVICE_TABLE(scmi, scmi_id_table);