From patchwork Wed Dec 25 08:20:46 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: 13920656 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DAD2CE7718D for ; Wed, 25 Dec 2024 08:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZaHgf1HOYINwmhIkfBnjW7uym2CkqF09G3XssNgoIvg=; b=qnugryz9tOS2onPak3k2WLOH4c cCsGbIISRQclaE+3GtMa06Capxu9cr1q1OO2odQlxIYxy1vS9Op9XmpfT1ojkFzEz6ejvuZKkFmu6 1EVDvoigu9HMyt6+fugk7c00hN5nbTumAayGg03NHFt9MVjwMxUCCuUoDC4/Qz28Ut72vOtLTNdyU t3838FT7vnAcGRZtO//eGXT4+f4+GPLPMe8jQTQhPuPTQq47q8nPLRJ8F4cphcjlrtQk6LwgfyOJP UVWK7LJBNN4mdDovle2WZz+tdwaSz6OXlkxm65F+QXqszJiHlDQBHZ8EULwLY/QiPewVphZC8QXy1 8H0dURwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tQMjr-0000000DRW2-3jol; Wed, 25 Dec 2024 08:27:31 +0000 Received: from mail-db5eur02on20620.outbound.protection.outlook.com ([2a01:111:f403:2608::620] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tQMe8-0000000DQrz-0szq for linux-arm-kernel@lists.infradead.org; Wed, 25 Dec 2024 08:21:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZhVHWtTGZnuFYUcpOW+0tP9h3EMj4qGfqi0fQMiROnPITbLfNYlygYeyr1DNCejj2tiOfTKMYRt3tyh1Ce4uD/pCsAZ/qnU47+n7QhNl7YDqqFwUsgjH3qjWbjdEcHjvJqQ+olRzkFADduiObzGA57jdYFVBPPK+8ZuD1+Umq7ctGZSxz3aY72sn/7PdVHo8V6Dfl+LXzrLONf8eoXOivLV8yL9vgiE5MD3qm7zP9KuYwQOvt+zCggbrV9j8SqUi0ife1B8DLg8HKXbKrOZk6GYalf9OD66KILZUa4lIiJe05nd72g6iGAAJQfoKAKBSw0ixyOqppFzW3RwQtoeJAw== 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=ZaHgf1HOYINwmhIkfBnjW7uym2CkqF09G3XssNgoIvg=; b=h5lloh1y5HfCQv+nfmJ0dSJmeykNrNngL/i5zdUVl0fXlJKSbb25+ip1uX2thjzsPuRcBTdUXuNp7cvNKfh8Z9UcDUMqM8jNubmGgF2xKyV6j6iDB9efUctdkytbQNK5sYKhM2ehf6S0MxpQ0B7gpobhwyFixp5IbQdyf6ewODIMH3DD7MHjoatipOWzTUXZGttROgUaCAAHzHDYKbH6/BhnRpAb5HC7q790lpN5jhnmNR1gZ2ZljqTvs0E9OSUZDSWboheCmJWZcE9cicRTuMc6Vua9pp9DaO0vytwCR3t5k7P4W4OJdDAgIM5PGrPIGasVMc95QgFojO3YY3OESg== 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=ZaHgf1HOYINwmhIkfBnjW7uym2CkqF09G3XssNgoIvg=; b=OPjdm5L0ih07ZTvicZWYtfJNcXn8RgftnxN056Si6lyQCBAuuGaE8ek6ffSXDlyMN1hYgsDyb/c5uCaW4h3HB4IN65PV4ZsNjHVFetHxTlSKYF+o0W/AgB+RZn3uh56sXCDolL1ZODp+0ErgfbH9/tmRK+/5BMAMZ/fxcesedxVtOfFL2PBCH/FdVphwnZx5D12BT6i6RNnoxQqbMV1NcIOOt9joxvo5Srh5aV+0sLxqrYf0anrvpYmiRo7s9u+JC/fMxpm/9QtnDvS00O5kGnJ4yDGKpflP9ixfH3AsYp0YATsb4MFwjbZe3MB//HryaS1PdTfs+dzxxjNEMLd2Jw== 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:33 +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:33 +0000 From: "Peng Fan (OSS)" Date: Wed, 25 Dec 2024 16:20:46 +0800 Subject: [PATCH 3/4] pinctrl: scmi: Check fwnode instead of machine compatible Message-Id: <20241225-scmi-fwdevlink-v1-3-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=1087; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=r4Ew8RhCTydbXQP0oQzzrc0X8D6H3LB9gfEADXdHfL0=; b=NjmxUSnfAhOUAHD2K7bs61CFhYAgc6OFQUZyMfQzZRBgrFCkQNjVg+Gs2lcy9mcjgj4vEisy8 KowglTrSVDfCEHozTXxH7ldb+qN+GN0SB9VvNCj4Dn51DtELE2MR5OZ 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) 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: c3490782-e556-4be6-8bcd-08dd24bd2440 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?E3bay6kLRUfIF6LjGfrnO8KKLnMwVek?= =?utf-8?q?YTzWD4cSBNlmlIJjD9W08nPx2W4254njtHxJ38s1Q0Fy0kYV+UIjBFROxGOL02oIu?= =?utf-8?q?D7Aeof+ENocEjM3sYM/86myLzm+gwLBc56lBLil5j1f//usb4G9WVCKwGzqU5M+2Y?= =?utf-8?q?BT9KuYWieKSqI7n7Eo4qdVAIDlcWxjvhHmUr26EbKHfxLuxz/BJc/ae49JT3p6kAY?= =?utf-8?q?pyIecNEAHqSRHau0xq+CyPW7Rwm31Tkr5H6xO29VLmFpVGq6o0V/xlJZKnDvyjMGE?= =?utf-8?q?4mLcQxSYIlZTiqrTrnd213jNxRG9xq3yZGdDb1GSS16XlYCpAk8a2TMoPti74hm9/?= =?utf-8?q?wiVp2rqIe6uWfxtZq6LbRusuJk+cKKSCcc8HOs/Q4roYuSjE8qYe92S6YUrrf9za2?= =?utf-8?q?sRngOnmP6qFouvPR7PHaTW67R9xRHnLxHsJ8F6nlAXqse/mf/KXRWcVLXK5whA0lT?= =?utf-8?q?gauZ7AUVp8tXkzJRBkXz3RNi0BQGCNqTnlX+3nX4c1by+VALc/GXMDBM/bs/pci6b?= =?utf-8?q?Dsf7FC0/Q+BDlagwKwqG9kfPWNfC0ST+ZLD6j/7/+WeoBoQpy8GXLdRvxUAEKKckp?= =?utf-8?q?oc53XKLg1FxH03lbdZ7RLvCsAldCp7JdlILbCxKneJ8mti4hdwScq4XKleCylLLpq?= =?utf-8?q?3noW0qdZNABFyrrON/fSHi03radY1fB7x5oJVzvXL2YjUHhS4+5M355Rq23h4Ebrj?= =?utf-8?q?cZIIW3L93l95EB/GOmQQ8R6OAN6SSkXcdNJf4NrUl+bkXVHvgUrsJqC2lvgiYrcot?= =?utf-8?q?toJcYBQV8kce8sc4KuByNgQlZjU9SWzD05x3pACiSmDNbhXJ5ujFgvGt10kI6V6tt?= =?utf-8?q?kJuM43W1ObFKN4TvD1fXDYrhcItQRUvAVOrV7ETSwIKml3QlY1CQyqvcA9f9fHYQq?= =?utf-8?q?N+ATwU0AcfP/TydW63WlLp5zG02vSA/QgNb/l8JGPBfY2GcY0y1rq7FkADs/yplvt?= =?utf-8?q?E38ci7nvrKc5DJE6ynbZvBxT++V7cWFuIf/2+NHcms0d2dQt0ipur6At8vy0+HwOm?= =?utf-8?q?BnYJDRTFZjR9M74col3lUvyAT16QlTJ8attJppwF8n54gdqY0o6GBFm6q/ZmlCM2U?= =?utf-8?q?wbi+OJ4mYpjwY6llRDX9UGV5ewahDYmsxfvUPBhOrf1MzFqUT+uQrBzVY19hBzvb6?= =?utf-8?q?4E35dX5ei4nR0BL6aa3Xyf+YM1e+Z/q5zT0iVvfT9iiSLmMb4AwlpXPGLaIyttMcZ?= =?utf-8?q?aDThQ80o7QcAKueoxUhrNIu4BPcgeRrtdeHDCHK8Znoo1fCidKU8wywuOEMOlzRMD?= =?utf-8?q?JkcVWe81y4Ok5T3A007h0rszKDHBSkPdoWQjeL2NQTo4b3LK9WEhca9Z7He4HGgAJ?= =?utf-8?q?DW1QUen/GQPqJCKQezJknMAlG0ve8Bru8j+m2tVyywgF9yj/1mZbgATWj+oMY/C0t?= =?utf-8?q?5NnGD0cauRj?= 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?Rjq+RLQ0BXqGC6u2KoNy8G1jb09c?= =?utf-8?q?YBD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= =?utf-8?q?282h4UB15jXI7jzbWyYn6tBUbJtIMWlmgr3C3akjIuZ0OgXh5992QVlJFtc0RuvoZ?= =?utf-8?q?5YDwJo6gyG73cRHR47YH6FCwzE2CdY0bZ3Fs69HP4eLU/fru4AhhkDCLKKdolPLAv?= =?utf-8?q?2TjLadCLTlUVxXwEAnQLshUQcnTO3ujC97CJeDaTHLV8cFDb9bEUp5gqdkOszRD32?= =?utf-8?q?ZkFc1SJvK/F8IyvW+AGJYt1/LpvN7ETcBPDqm0KqJ496i5GtGyir3FJKU1ahkRw+d?= =?utf-8?q?t6unfu7OfPDvXUkArg47GI/5SbxKqb9ekn+h7O3asSXHmHQHHY1eopVlb+eN29OsF?= =?utf-8?q?jIF+FLTjyUrVQltIi+zYwkUvowwh1ADTwLRQryzjW3jfixKW7WEqhGGnLPcrMUhZF?= =?utf-8?q?5FAcPed7BgWVR1JG8fiHcYhHl+cP+WAc+9PGvH2rkqLb51WUrnsQTN6x6RU/VE55I?= =?utf-8?q?X9IdhZtHUPZFzehpvOA4jDvo80pWS/MxYgbkNld2TV7GTQeqcDuZtaY9+A8sq/4xE?= =?utf-8?q?CQ90CLNFz7YFU3etWbYlLk7PtQzzwNRbnY2bunfesmGfJ1wtuCs+E1RLA6CSN+eUI?= =?utf-8?q?pcEGLPVaCk8ZuIxz0ujPj+fUiwQckGcEs3pKR6A1knrR5hvW/ZJW0U0b0VK5ATzqs?= =?utf-8?q?3Vws6o59qdva?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3490782-e556-4be6-8bcd-08dd24bd2440 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:33.3042 (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: uJZn4eyONZYSzxUJoxGIIQFYHHwB/kl/WVd0ZVPRqfst+1QQoI49YdSIkQ0PIu7jxspGB7qjyJhgkI6H3+SJLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6985 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241225_002136_261566_1D6E3BE1 X-CRM114-Status: GOOD ( 10.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/pinctrl-scmi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c index df4bbcd7d1d59ac2c8ddc320dc10d702ad1ed5b2..aade6df77dbb2c391741e77c0aac3f029991e4bb 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,7 +516,7 @@ static int scmi_pinctrl_probe(struct scmi_device *sdev) if (!sdev->handle) return -EINVAL; - if (of_machine_compatible_match(scmi_pinctrl_blocklist)) + if (!dev->fwnode) return -ENODEV; handle = sdev->handle;