From patchwork Sun Apr 28 05:07:51 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: 792956 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2051.outbound.protection.outlook.com [40.107.13.51]) (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 5438F10953; Sun, 28 Apr 2024 05:00:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714280431; cv=fail; b=aNdlpRD6qN43hvd8DMWaW/nBClzNalV1He/RYHlbZQLdtPkuVSJaJoZkvwndP57pEXd/jlf2YkWNiBsIQ3NUrSSkmo+xINrn7hCDfulfvi/rWQXP0D9SZTOWr8cL0wUzkI836jGb9qX2B4VnMbb7UVl9B++O8yYoJEkSiDLcwEs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714280431; c=relaxed/simple; bh=qT1gMIuECKr4AY1noQu+dj4lD9tdtRmznKszsDoYSKo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=eeor8tCvhBvoJqQBh9zKoBhbLOzVdLyy38Wn1OfnCkycQ6v1qDtdrX3h0p+tuR6kSry2FYOig5J0cEJGgnSFlJJp7xFO5NgHoYuy86tDn50VdMcdF4phii+ROG6k6s5WRRiQjM6wluZKO6/gLnD7/+fJguTLaN/m6vO0NBDgL9w= 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=jlMhic4H; arc=fail smtp.client-ip=40.107.13.51 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="jlMhic4H" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dh2Utdf1hM4MOsbpHHxeN/HF171EsbhgFElcsFDStW7d1jolDCBmrKNFkEP5jpopYeZW76oW43bJBKIthsY5/FnlaLCmz0ITTjd4OaNqK/RKtBUiwNWiXTpiQ3tPCRQQ6D3ARd13aQbtMCQj9o5DtkvrMgbYYkPQZgyN9+O5P8t/tRYna0b1ACZ+OCESayBlhuWW5GEqpSxqXcFM96ZUK1ljkCt2BE8g5X21eHT3B6SEfuYgNWxyunMX4Sf9HCOH7L3h5eD77PtPQOmyU3oUvlmEFIr+vrQ2PUjDCi+XMqLDOUz+9+xjrA3sW5n5ujmPFvQN6Ug7Z1ZYq2FfWDsP5w== 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=/xGma/ISq/IkMsbn1rRp7qErVSMnBd1TEHoCFW0L12U=; b=dodbVpWD95WM/DwGPbZnPMFPDwdXlRqLNItyoaXXzrgM9J1rb1TerCsRDABcNalWPLLtRXro1q4RgZC7qHhoW60hh3DiSvklnzImGpaICY5t/kEzM2Mko+4D0+zoWqDS0mJ+jxkV8SqtbSN9smn6ztHymtB/BahQOm+CwkjDHLJEQ8sE7DQ3HigMwQNVMfEix08yHygJRf7yPm1dmdjb9Qm0jlnobmLpksOTpzQU9h0VyHki2lhPxjYbKtvBKgXTjWR8DyrttLnReQj+Fr0e79AlHifmnb8t+WWloy6u4b5bbo40x/E/FSaXpQajYevjaob6KXhWQFVXhB/jN2CPPw== 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=/xGma/ISq/IkMsbn1rRp7qErVSMnBd1TEHoCFW0L12U=; b=jlMhic4HYRWSXNEYc8KR2wnp15dtQ3fcuLXanU4r278RI/rduV4aHHz9NOnIwnNXVW5hROecmGapuqpYXZhrQ5DiOOXWym4MSWGqjlNi+R8iynSuJhCjUslifCZ8jBb80CjX40qulGWzqKQInqwzdwbbb4HHxgu/J8d/PZDRMIs= 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 DU2PR04MB8552.eurprd04.prod.outlook.com (2603:10a6:10:2d7::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.32; Sun, 28 Apr 2024 05:00:26 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7519.031; Sun, 28 Apr 2024 05:00:26 +0000 From: "Peng Fan (OSS)" Date: Sun, 28 Apr 2024 13:07:51 +0800 Subject: [PATCH v3 5/6] pinctrl: scmi: add blocklist Message-Id: <20240428-pinctrl-scmi-oem-v3-v3-5-eda341eb47ed@nxp.com> References: <20240428-pinctrl-scmi-oem-v3-v3-0-eda341eb47ed@nxp.com> In-Reply-To: <20240428-pinctrl-scmi-oem-v3-v3-0-eda341eb47ed@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=1714280885; l=1584; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=GBly3E3FCpamuuNCyb9X5Tw3NOV/O8isPoV7JaTrRkM=; b=HBeNuROaZj91h+BxKGKeL8IdhhCsjaoKD5xXF/cfnJamIG4/bIzd2aTI2SxQ03ubQViSXygvj nJnS8w00ZUQDMgTHvhpKXRzhyaHMwI2ac5Ug4pR6KCisFeRs3g5ptg+ X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0245.apcprd06.prod.outlook.com (2603:1096:4:ac::29) 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_|DU2PR04MB8552:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a0419b3-e99f-4932-ff95-08dc67401e1d 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|1800799015|376005|52116005|7416005|366007|921011|38350700005; X-Micros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ys15LBVTd6xbvZy5Vv7oIWSYUwozG8cRQBsWl+OJgz2INP9k41Ynhd9x?= =?utf-8?q?vpoa+235K3smOd/dYx7klUiBddptFpMpigUvWHaU3YUdUHcTUEIth8Az2usi446xl?= =?utf-8?q?aJLRZac78yjMa4RR4AhS1CUHeIyT2C1RBbI/FqkhmU6ABthbHp27fJYIVnLKBbWmn?= =?utf-8?q?8wPMpp3oZxsEecFOcNXIW4g04FFI0K4cIKM+1joIgbDpNDeUtZPWpSQrCNCQg1NTU?= =?utf-8?q?cRweWGJazu2XiQxKBs+s2XDzCcEgGuKO+BzVefdQ8ftd6C1bVCmsfEK4PAFPGLkj3?= =?utf-8?q?Y3wJ3/eOitZXcAs/6d8fX5AzZ4E3qHKmOnAtS/61Sxsa3uReIWFaHsESMeRPXaz3C?= =?utf-8?q?iNa6W43UjWgvVYJnrQtos3dP4nhx1ALMP6YVc2Bcx+ZjFA/MpGuOTdw/vFV8KIVUd?= =?utf-8?q?OYBbLkS20UNV/ATt2hwwJ3KKFPWccP0oRew=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)(1800799015)(376005)(52116005)(7416005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ITCqrxrzPe774QkDCkxlPDMk8+zz?= =?utf-8?q?sxtJP2QWevIyooujLIIFsBrW15QiA1tUAKeQC0g8utrQ/mYC9c4qdM6OQaTzkDApt?= =?utf-8?q?zoK/jAgloHd/fDkOvzaq/gNbWcS87kOAlo6uzGIWGv0aEmZeEWuqSNDEKg3zhUX4r?= =?utf-8?q?pWmY+79y7Ur91syLTHBf8gLmpcnL9T/RFuWEXbVDEWAYNRRCEqSpcD/vAstFVC2l1?= =?utf-8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?utf-8?q?omXKyatOWq3HRuEA7LM/HHE1HEMl91Yfj9Bnk1t+fLWh8RZa6J4do/mPo6/uO1UOC?= =?utf-8?q?4RmrM5OO6n1UZeBdNKsAKIIQBle451X5HLqz6B2GpNDeONXfTsAMuH5F7K95b8XNg?= =?utf-8?q?8UyNmOL/SSninFmNbVKmFJnNSnxS//3pBIyRsdIMjBul4xe+RnnvxCpRePeyjpM2D?= =?utf-8?q?yo2Hx3u543e/rcfDvGXXLSEi/cdIr9G0fuJzRpkHPC/cW0cZPQio1WDiZYQ+1hfmV?= =?utf-8?q?Ff1kHI2MsQh0r1O6W6nBt7QncZ5l+8/GNRGXawphnuFz35YqSj620ScRiPvbUhr9c?= =?utf-8?q?nSYxVbQxRE9YJFcQK9e4LfWmAznlP26D/oVMmw2eyI//HnZojOjC17RXBNz8oIrge?= =?utf-8?q?J5rTLh7ssgpBTBTs8DbJXEZ9B72ZQgmlmu1oPN3fHAemRpSodNyo/gzvjVMvsQuBJ?= =?utf-8?q?ReUVnMO1hZyV?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a0419b3-e99f-4932-ff95-08dc67401e1d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2024 05:00:26.1405 (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: 7yyOjzxTEhuTmxEyyaCoi1v4sQwddEvhO6CC/fgOYhuxPvf+OghAxobxNGfwW84FLonmxSo3bTMrccNWvX+KMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8552 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 --- drivers/pinctrl/pinctrl-scmi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c index 360b813072df..8ff35869efea 100644 --- a/drivers/pinctrl/pinctrl-scmi.c +++ b/drivers/pinctrl/pinctrl-scmi.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -492,6 +493,11 @@ int pinctrl_scmi_get_pins(struct scmi_pinctrl *pmx, struct pinctrl_desc *desc) } EXPORT_SYMBOL(pinctrl_scmi_get_pins); +static const struct of_device_id scmi_pinctrl_blocklist[] = { + { .compatible = "fsl,imx95", }, + { } +}; + static int scmi_pinctrl_probe(struct scmi_device *sdev) { int ret; @@ -500,10 +506,14 @@ static int scmi_pinctrl_probe(struct scmi_device *sdev) const struct scmi_handle *handle; struct scmi_protocol_handle *ph; const struct scmi_pinctrl_proto_ops *pinctrl_ops; + struct device_node *np __free(device_node) = of_find_node_by_path("/"); if (!sdev->handle) return -EINVAL; + if (of_match_node(scmi_pinctrl_blocklist, np)) + return -ENODEV; + handle = sdev->handle; pinctrl_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PINCTRL, &ph);