From patchwork Tue May 21 06:25:58 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: 798257 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2087.outbound.protection.outlook.com [40.107.22.87]) (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 90C43481CE; Tue, 21 May 2024 06:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716272239; cv=fail; b=kKcqdlfEDK6e3BISztCf2CDhsFsrmVNPFnsFAxLBn8qUrwH7On0ezVIe9Gi0tpbEDNVM6CsgVavSeEm/Wx50sVO1/se2oZpsDcmOStWVFd2kbbrMwUR1IbsWA32POOOBNdiyyO/Lid1js6H4lfTcZbB89U4pjCGyuTqM/fE7rR0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716272239; c=relaxed/simple; bh=6vI6esihawUEAsMpS5AmmUzpDZmYxlKj+KMmJXgWIqo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=pcHN4oYCkjuIRqPaDUIK6Tj7J9P/0W1ISu0c52PdiiCjcSJ7Hhj5f/chwUXM1pldoKY1gSekevQ1N+rSGtWkFX4C+2PFbj8VQl93ZxpQ+Pc308RhkxVkq82Dpb5RKg0j8UKy670AWHhfqLCs0ACtCWbjCII7QZ++a9sgslPIBUU= 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=Zrp3rQJd; arc=fail smtp.client-ip=40.107.22.87 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Zrp3rQJd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZNbl3qJHGgtEsYaqbqzGlQ0den+yV06EBMO8PjxfKH3OagdGK5KH7pEiQEUvgXLCTFZhlnEDKPiNta2WkWba6QR67/YcNvF0Uw1MWGs0pKvj/4t2YlAFL6ncEOruTrR/rtPiKp2Xr/kw/SgzUD2ZBhVGAQwmGXgr8v7aXHfozk2cKO6jTNRiSiPh8eulTuXhAAZ5ORlE/v9zBeZkmvq3m2duetMfOtm5sGBnpeQBzjxB4Q1yBXL7zuMg3cSUfuoUGxhupGndsrK2lQczh/CtNejxUrHqUUbau5qv3rDLHughfmYbV+P3EHllIIoBx1dhHCuc2jO18ulLKIaoIuSG6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=BSpuIAfuDc9u8B2QwCMoSNaXFE4wvMyesjB0lNEUwr0=; b=SUAbZHL7Atyga3h8kw0h35dPPc6fGZL06HAbacBT/4jc1UZiBBCJGujS2oj/O3rtCvR9AclRfby9mz9nQp0IsndIpTqssk8FmCjIt62Wd/UpSdBMJicGgRk0AiT2eL//yAvwceZJGnKqu1845hTQvVxQ64fXlZkzN8I/PyyZPeye05zTb/GExGG/iZQnInPdvktlBV67/rceLvzinVcwNsMjpX4S3SbOlKcbirIFF0RDDyrnXc6EbHgYuRWCMTLNVeKINJ0q3Blh+3rnUbWzfG3gu8Sm8Pad7V3BvtWERBngSrL5igrlSgARUAn+lJXTDQZJDHCPUe3WS4KHc03x+w== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BSpuIAfuDc9u8B2QwCMoSNaXFE4wvMyesjB0lNEUwr0=; b=Zrp3rQJdpkNnhh+OOqRo7gqjthVzWw1WwWizzKZKRFvb25m/nOfJP0FqndQvzy5K+yGxO5AT6NtUI1Lq+4zy464LCNJCV03evvO24EZX8c4CdpA6OLtHurgWoOVq4PVI87zMkaDz0yd2vM/TfYAl94nwSAzjGDTjGo/mkv34ZaE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by GVXPR04MB10705.eurprd04.prod.outlook.com (2603:10a6:150:223::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Tue, 21 May 2024 06:17:14 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c%6]) with mapi id 15.20.7587.035; Tue, 21 May 2024 06:17:14 +0000 From: "Peng Fan (OSS)" Date: Tue, 21 May 2024 14:25:58 +0800 Subject: [PATCH 2/3] pinctrl: scmi: add blocklist Message-Id: <20240521-pinctrl-scmi-imx95-v1-2-9a1175d735fd@nxp.com> References: <20240521-pinctrl-scmi-imx95-v1-0-9a1175d735fd@nxp.com> In-Reply-To: <20240521-pinctrl-scmi-imx95-v1-0-9a1175d735fd@nxp.com> To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Linus Walleij , Dong Aisheng , Jacky Bai Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-gpio@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716272771; l=1313; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=gKhGtuOf4rXyBBJYl1QLNqh0NrD/5voNP3TjnJqoeg4=; b=OsBq554hEU0Fke9Vk3d4Oqc9PBA/AOjXjq02YWJAVWTGD8f00W0ddkpJbSs8irlghBr7sjxQ/ z03ZhgcQHJMDVR/jXSC6UG2eQ35J3b7i2eA66uLKWNt7OPtEewAPTkV X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0157.apcprd01.prod.exchangelabs.com (2603:1096:4:28::13) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) 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: DU0PR04MB9417:EE_|GVXPR04MB10705:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a36c743-bf89-4aca-babe-08dc795da856 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|366007|7416005|1800799015|52116005|376005|921011|38350700005; X-Microsoft-Antisp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WA1VfXLE/1dWFOqAkHng6JgE5LZ7tgd6QDpFLuORpdeWd0V9EKRKAY4u9bi?= =?utf-8?q?QyhrRSFiak3SZbP++NoswVVeR2DyG8Skt630yx1VL6W0KUbHMLsiGFdvJQTFLgaa2?= =?utf-8?q?OrjG58TV0HH5iluB8B1BIv63z5bb9DlK4Zr4x+XJD2hE6xM5/oCVkr0Nb7RCYAbPn?= =?utf-8?q?mogukskpO79+TQQ94W+2jvFAwUVlz3L1Vr4mQgdN499dfolqc0Z9kGMRiwL7kKHz+?= =?utf-8?q?nGVmJ7x7MKCfA4lXLTDykyfwRpJOHkndzKmcYaUWZU98gfCkcVjJwLue/zAhoVUZ8?= =?utf-8?q?N1IdpTPF3Byp0lTPBNILjB6hIq+Zo9Oq21ASTLfxA1wGLuBQVcGHVzyRTxqd9vqjr?= =?utf-8?q?jNqAuKAJnTORXS1jFP8eMNOb+WvEZr97aHxzFVmF1HheM6jAy1Vbaw1p+ck9P6iz9?= =?utf-8?q?W1/Uzyo9YavQ6SFGF4FNvZnbS2mZNesl8cw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(7416005)(1800799015)(52116005)(376005)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?B8MBW640xypqKuzZL1Q+AqNqOSAr?= =?utf-8?q?/wwrzPbDYP0+WzuBTd0LVldbKUiWSdxcrRXyedjePUaEfq91OozlPkLQ33BNtbWKr?= =?utf-8?q?XlTuTIyaX/5spZF7VkgeTdHnbcuLdVYD84L8bEn54SkhXva3C/XFnmAiAKvkav9Sq?= =?utf-8?q?0NUxc1Jthp5tQIFgW35bT28TxrZjD+ewtn7sBo56SNe2w68bZLDiSSH/LvOIGTyX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s1Bh0?= =?utf-8?q?94gcCXoeRm07l0COHsqmBCahbkvaMvTjeEXOY9OCqOiZiJXKNJgLjYe9yg3gFUp8h?= =?utf-8?q?aWaRY9Rpe+XG6/XXkk4NxJxhhaTqV3wk27mz3DNcCK+fi3yvvMqYly3T7DbKTG45E?= =?utf-8?q?jk1F0AsvMCUsT6eOEVP9K0NPlFZWY/rhdbPOGfAJSqgSKdfgtP2FHkezGrVh1G2Uc?= =?utf-8?q?hdjNsw/+CnUdfn3Rt2ykrs/wsAta3EWiuCc/RRXcBOf/l2BbwmKQYtVwrCGaE6A4V?= =?utf-8?q?DMQbrQVB/lBaFmqRKc+6JidYX+atFcCIt3EGIgWkMeMnEaoPycOfYYET+CdXHDbTa?= =?utf-8?q?VC8ws74LUKqCLLXeyg2CUBOFt5rMhsU9pHWjVtIvkqedgXv4Ou7RMgudDHdzVQl8+?= =?utf-8?q?dDL+yO/5iFE2DJCT03vJBLWc1DwCgFUMQ8qKPfPKCBDv4QzDyWcDjfGpQduFwEhIB?= =?utf-8?q?Mq9zlVaAhL/e?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a36c743-bf89-4aca-babe-08dc795da856 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 06:17:14.3738 (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: 6SYd9LaKeJ63Zi8Zt9wqtVyJFBcwNSX6ZE7ffchvwsp58NF4dlUAm95coNtLIalo56HnWfeV/At/JLx3BFM3sg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10705 From: Peng Fan i.MX95 will have its own pinctrl scmi driver, so need block pinctrl-scmi driver for i.MX95, otherwise there will be two pinctrl devices for a single scmi protocol@19. Signed-off-by: Peng Fan Acked-by: Sudeep Holla --- drivers/pinctrl/pinctrl-scmi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c index 036bc1e3fc6c..df4bbcd7d1d5 100644 --- a/drivers/pinctrl/pinctrl-scmi.c +++ b/drivers/pinctrl/pinctrl-scmi.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -504,6 +505,11 @@ 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; @@ -515,6 +521,9 @@ 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);