From patchwork Wed Dec 25 08:20:47 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: 13920657 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 0F979E7718E for ; Wed, 25 Dec 2024 08:27:44 +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=C5DRiVkBY/Qmj5Xidop8UECBk7ZmAsnb7qNwdiy5bY4=; b=xgDaJAGJUbX/yV/QJND1rtf/pN rnMq2sFFSov8u0wdcgbeiza4y3y31jMgpNbAY3SnFXVPeyoHOptMRvpdWHt5NhnxPSVaDDNA5RyTX /W9Ap3JcoNYsfJjYj18iwHKBwvitRR4giPlkTrJkjuXgzJgitdg4AcBCJTrmuLxezT8HfmpIyssEJ o7B07r8jbp4F4P9bazOgKCV0UYAxGUiReAQD0A+6S3o6fIUGquGtwPvFqAZHh8DRnulGfI2a4e1fs 568RoSJG7J5XRvxVjJS+4Z8+31EBHYWYFD2T2Ynl8gORUNQzjHA+Hls8NZNF+zxgEzGQr7yvh5CoW NfP70Ucg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tQMjs-0000000DRWK-2L9U; Wed, 25 Dec 2024 08:27:32 +0000 Received: from mail-db5eur02on20606.outbound.protection.outlook.com ([2a01:111:f403:2608::606] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tQMeD-0000000DQtF-03NS for linux-arm-kernel@lists.infradead.org; Wed, 25 Dec 2024 08:21:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Mg51SzQIqNXRDfUC/N+gBirlI1pA2G52eu6H64SE3U/Jqpr9/JvS60Ah/ia3ePWhx6/LhedyHoQ6Zu2Ev3U0VK0fYVeL7sHsx4XLQiPpR4jXLBUT9XTFLxfG0HedxypjfVnLqc1IhFNVaH5NkxcU3tda6q9eVrP2qYXkz7tuALfuo6+focTsvzptJlNLUPPK7MZooIjdBIBQ6emX/mNStiudLzIF5EzAcVsVYBqvARbIs44EiYO8Epuqq1jOgf5Mq5CvwNRlEe9bOy+Pit/Q90Pk7wBwg4Qw+wMh1Owd/bX1B8ig+G61/Sbbw0DY1X6GTYN3vFCqj3X6Q+6+HP4FuA== 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=C5DRiVkBY/Qmj5Xidop8UECBk7ZmAsnb7qNwdiy5bY4=; b=xKSZEbfaY+IP8pdu08QytQXl4znX/f0gjHsOiETo+FkGv2nPRfECJw0vODm+4GJe/yHy5U830WhEpFIsoZgT8GC1acJ+TYD2IRTWMEkr4dx2dI9AAtW5Uxpcm5k/NoGPt/guzCL/9dS7EY8i9E9r3ltVrThJ/mQi7tP0BsGbzc3lroqUC6U8mcM6KO89aKzumxlxPABImnwkGIn59B4gk3Cqy0IsaQofOlLafXTq3GPXoB+dEhsno+paVrJXTyrlUXtr9s25WybNigL91CiXn6D1ikNSsZ6ZIRdtAkzUsBmWM0RO6gqKQFY2j5inVw78835cnE4ervU/9eQGi6nSow== 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=C5DRiVkBY/Qmj5Xidop8UECBk7ZmAsnb7qNwdiy5bY4=; b=bFajG8mYHqOlM70k9yjppPRRnOL2oMBL72QeUAJE8VNMDjJGTXQMTZr/ZtoPKU3gjU51XiOZCNVUHHYlgGFObJOkj8pa9UeZkMSJ4sfbw0Bh1qOVcB4baZzoPz03fcYS11pK8mc/zV/zvYo/fYC3EGH03UK4RoyzinsTU4TammtFPBUoTF7DyQGJ5TXlSxhEWg9aqnIiof1kICt0TmNKSgidTDCiMqCvTr4YTS22NWczSn/63ieunI3Nr8U2X9iZ4E8VJs5/jJspufG2UfwcMhD09mFVJ2tkUhKyPaqtHNUVjmnsY7CAyfOHlwub9YFjkbgfO6WW2GBcAGOSsjCaxw== 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:38 +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:38 +0000 From: "Peng Fan (OSS)" Date: Wed, 25 Dec 2024 16:20:47 +0800 Subject: [PATCH 4/4] pinctrl: freescale: scmi: Check fwnode instead of machine compatible Message-Id: <20241225-scmi-fwdevlink-v1-4-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=1266; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=7eG0vdViAcWDMFwtbA37HE71/cQbz9oKqAxOOgh/B3I=; b=cLKqzw+LzGbMbeOHj7yW2dtjr3VzNTWL+phBGvS3G1CzKImJQ4GFfOFhqIYFN7dLV2gd3Ff71 hlcHNN3vSw+DqQKqgXE/mG5faOEjXaIGrXwHXzG0P+Rw0qhGQKco8Ia 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: 8e397cca-342c-4b2a-f7ba-08dd24bd2737 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?qVDdPJFogCE/MrXOu2uTSf3MlQ+NXgO?= =?utf-8?q?9QWmzq6h/T/jciWpduqJ9tv673lBoCywWRc/3NvzKmGfIRewTKJwFWxQL2+U+jYaG?= =?utf-8?q?p1TJHjCUm7vfm1SABEqKoeGfj4cY2a29MMTZrrwHB2AppCaqD8XwK0ztv+nwC/wED?= =?utf-8?q?rIZE8q6/UkisfjQmu2gYo/2NY0svkYMxs10hfHqO+f2t/kBnQpWQQDP+WN7k5G7fs?= =?utf-8?q?C/e/iwTkpTOeK6iO9ESBSEfqvx8BRzAnQCyQObEjC3AZ2Bl24aAxTxx4hNGDwNCuG?= =?utf-8?q?r8OXgN/4zbnfj8IgMSShGPOP6hnZnIdEtBW7/o3KWqSByUA5kUFHq2kLxQI/PH91f?= =?utf-8?q?/h9QK5II4fQ1Qp1P68t+S1vzI1fFgZTgNZbuIYw3JkPTyQkKiLGVzL0Fp4yVKn8AF?= =?utf-8?q?G0hfHKtLDEfkn9LLxQrBuGFZqzFOjhypZ3OgUfzI0NPYdOQjCcewr8CVe3UtquAB1?= =?utf-8?q?hHAmzkN5o0lgZ0Cf8qWADY+qeRBRtiqiooUf62ni+tXcyr4DCxFF2fpGja85XjdYz?= =?utf-8?q?S415uOypMBXivjjhivpQQ+TYhh53l7eCsl+r25fnGG3/loU4rrN++l4Z2/xymB5DJ?= =?utf-8?q?VADMhsOYAHkUu3CaEQch9l7sP4D8X1VojjQzfC6tSQ3XC2RT1UThjIa0CKseWVhFx?= =?utf-8?q?Puh1kgBcpC3NcaeC42xoaKelrGFZtZtbsmduFzMj5aLRpsNPO9mNMhJTmGB88Im4v?= =?utf-8?q?SjD1e0atiTDWIM/dPsQx7pbkjeBkndv+NHjKWMnAH+INMQvimczY3dnO44IBVyA7U?= =?utf-8?q?/Ie7D9/Sx1Q3idgEnaJu+LSaZ2M5kCk7JriSNYiDFBZlSOGZrm/Nb6Qn9g/PRQm9c?= =?utf-8?q?X9m5gX+QaMOchK2ssHkoJDYtpJOcB7NFCoq/BpG5s+4YC3ZtxJNbCzlcx3j3Mf9CX?= =?utf-8?q?Zwy3g1F0JUX51j4PtwkO90I6btcyP4do+87d7NIiviAiZtO6YlM02hSApQioei86D?= =?utf-8?q?CWnx3hlWWNGgRETuMl54mHWEauL9yFpTLZiT7Iqa8IXWr8ai2W5U3PgBoSGzf+fB2?= =?utf-8?q?oGp372jLQIXagJgawqq+nFZX9FIPnPL0Kf4dL3p54bi9NllVZ5ztVdxGITTwzd4/f?= =?utf-8?q?oZMiAasxKjeQzJrGlgAFV3sZf0eXmrUrISYQ+59sdrGixjE3zQUuGrE4LxUlQMVdL?= =?utf-8?q?3bMPo7SLnTcy7xWESaXlqKn7PB6BitHmZLAwrxKU3VEQXV1eRYoCqj23UGcG0GPSO?= =?utf-8?q?utdGtqcubepRk2JuDK9T991LZcD1z4aZA6cSYFvSfNvRnHEr2ZeqrDNDL3HCzTgbR?= =?utf-8?q?+8V8EzRof7GySkjZcc9oQ1znIXZNBTR/oQvXLv27AVcIhyGzTzu5e31z0Sx6Eptrd?= =?utf-8?q?VJR0JTBKnrUi0QIQH82Q8BHcACXcc/eDEmoLWcVe9uo/AppUEuLyDMPWyafOBXmrf?= =?utf-8?q?JqCG3qofTkm?= 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?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70YPvzKnp+zvTDl?= =?utf-8?q?vHp+rce3W9DwzcR8VA4csBNKK4mW8A6iGKoEQ+Uz/2nfAXdh+YrV6s2scXMoSgyTc?= =?utf-8?q?m2nmGIxXeDkxz93moPnnvSK/0WU9hZ/GowQLmwqRp9ja9xLgmv9UEicapq/1a00Fb?= =?utf-8?q?0MpRf7juMmqFkTxbnUar/GhRvpYWqUL8PiGNMvGWf3I/Tg5pHGGZnr4WN1RUG/Cmt?= =?utf-8?q?IgurrTXXCkGjk7avfTxZBAw7m453b468bB39fzyc/JEhdrjMJUtW4vWULiO2pV4CW?= =?utf-8?q?N4vZYlFmUlPl5r9w6VAUOhQ716/Re5e+VWbMrUfpe1qZrpNOPBWmsQhPD83ABWHmT?= =?utf-8?q?xpMtaOVJAlcNkQ1Ttr/EJkl0aSlMEAOgAUZUS3Qvh/mbiN9wsN4uWQAmOrxYdCisr?= =?utf-8?q?MNzSS7d2wVubfmwI0o3XdcBDricnl2r6dylG/u6KBsJ71W3P5XeoG/GjjAQhTX1dK?= =?utf-8?q?YldOwFvmNU3a1muvjJecosmVUXnK87GpMH1slCY+aMWxPVF6OjdYEhe4OI4B85Mk2?= =?utf-8?q?vqXVcnRY6qg942o+USl3rfA1aqb1rJnzWbIEpcoRmt4Qz+98EA8YTAin/qsx95IaW?= =?utf-8?q?BTucqWJEKz6sN9VDA2tv75j5w/i/oGdkL/aeKrqvA2fkfC2OX3+gtZiBT/3t25/69?= =?utf-8?q?XSGzh0CjMOU2?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e397cca-342c-4b2a-f7ba-08dd24bd2737 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:38.2799 (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: yQ62ZNGJNnrecRBKfBALn7MdgWhKZTW4K/wkFu8XLb17Ju7upFQJATTv/viyVbiwecBJuW9gbqjQTwa8XGgMiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6985 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241225_002141_085276_8312B7C5 X-CRM114-Status: GOOD ( 11.24 ) 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/freescale/pinctrl-imx-scmi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/freescale/pinctrl-imx-scmi.c b/drivers/pinctrl/freescale/pinctrl-imx-scmi.c index 8f15c4c4dc4412dddb40505699fc3f459fdc0adc..5277d30af7084b9bbf83e3523f09c8136d41705b 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx-scmi.c +++ b/drivers/pinctrl/freescale/pinctrl-imx-scmi.c @@ -287,11 +287,6 @@ scmi_pinctrl_imx_get_pins(struct scmi_pinctrl_imx *pmx, struct pinctrl_desc *des return 0; } -static const char * const scmi_pinctrl_imx_allowlist[] = { - "fsl,imx95", - NULL -}; - static int scmi_pinctrl_imx_probe(struct scmi_device *sdev) { struct device *dev = &sdev->dev; @@ -304,7 +299,7 @@ static int scmi_pinctrl_imx_probe(struct scmi_device *sdev) if (!handle) return -EINVAL; - if (!of_machine_compatible_match(scmi_pinctrl_imx_allowlist)) + if (!dev->fwnode) return -ENODEV; pinctrl_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PINCTRL, &ph);