Message ID | 20250120-scmi-fwdevlink-v2-3-3af2fa37dbac@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 463E7C02185 for <linux-arm-kernel@archiver.kernel.org>; Mon, 20 Jan 2025 07:19:58 +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=WLP9ePf8DIdQ8k6igl4N111BxUUl2NNmcWYXPawAUf0=; b=eZSpoUlSt3xDrqrcx0Rx+299dB oVpqfP3elkM0bVi7vgMN7V/NKhi+72cZ1wAoLP5xSH7b5VXC9rnyAbv81e3Jj5PSg9+o0Rg+gQCox jYKx00nT5j/Ln+CONWVWOO9Vo7hnC5W4BwDIq6k7LiqtBY5C3ljDXTZEBUxxYV5NjAMrdGU40hMu4 ThxK1KhTuEyVYGV+2qrtQdh2DMAgxi4l8mteTpliDOUyYWyeFbqRCMv1bdsmtjRNS1Yx9NvfJJcK/ KInDe9t6WSZM3GyXq+eh5IfEFWNgYHQRuZyVwkpCy6A25BHJNF4DgW/fq7bgQkTTk2cAj6Xafj4Ps Lzn+/fiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tZm4a-00000004u9J-1yrS; Mon, 20 Jan 2025 07:19:48 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tZlzg-00000004tWf-0MSk for linux-arm-kernel@lists.infradead.org; Mon, 20 Jan 2025 07:14:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lnHWYyw5FYac+g54BFkbfYguepicGAyWBnGtAI8yP1EbzopKUH6dAQcG3IuVTjXZN5We7Szbvr4ulVdJh1OXNth0LKNWQZnIcFOxtqamRUeTb5USQhyn2lLzyoFxndSipS3LMTHXRPghiQK/RiLWo7DtA6rQCTuEyy/FYd+kxayizLb06p6E9DIjdT5PDO51gFlFIdeSz6nZX5Pahzi3KuKUEMdGpWfZUiwwX9LlCsAL1EogaDc7+gUqvUj5V8sfwke0bX7kbTR70mYgU1IU/PlnVeKdX4iP9Et9PlD58uV1hIdvRZvm6kqFBd6O1fi6aMc22hNZiXitgn0wv8M19w== 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=WLP9ePf8DIdQ8k6igl4N111BxUUl2NNmcWYXPawAUf0=; b=xtpPgymMjgF84Cu50ZKhkesMCQeM8rGmrPf7J2K6Sul7I1AfeIVAoGNNarb73kY1vewNRwLW6lLsWzW18GWqLxrNKChW9QZn7sp3sUtKiX+KK6Vbe5ketIelyhigDj+6qQIc0DFeYt5PqyBTJ0XxYg4bBNXgbb0Vh0FM3gs3c64ZukSdFqkYgMarH1UGo1hrDPKT9tNX+YUWaPy5txvwBaumyQk6+rdmOCf/SD9TI4veXCmSwWTYwYROcJtV9IWl9J2RpiEXCacble0mc6ol/TAhtv2H5IlHRzwC96FJxVfe4vc9B4jYGfZOsu5foAyGMXS/na7DiBwW4mlmgBZ3/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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WLP9ePf8DIdQ8k6igl4N111BxUUl2NNmcWYXPawAUf0=; b=ICHvNupeJrrSOrckpvttE+KTLTe0XmeY69oHH/t8nPNAbgeNhBFJJz0/1NmvvNmOSO4CyfM9QU2Sz8Jl70kTfZoHOdK1fBSZRpq6iLE7gfCc028+zDYlAEzYhiRttntmluuva4iCzvBVdfe1vF1b5nvEZ9WG5ySy1EL2tw7+pEqdTl7xBxAR7Oe34wzQsJopyw8WJ0IAZyJZ/Z87PyZA6ixKg4Lwust5PqZQzGT670sYDx+D1QFHVgbxMOzddz52RGMxZHlIGaj50bC+vLVd/vt16E8ImYzmPrRLokSfHz3X3hwGugf8lA8tZvBzzHdv9ws0c6dHtAl/4UyKSl8Mrg== 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:39 +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:39 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Mon, 20 Jan 2025 15:13:31 +0800 Subject: [PATCH v2 3/4] pinctrl: freescale: scmi: Switch to use machine_allowlist Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250120-scmi-fwdevlink-v2-3-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=1763; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=2s7AFkufdGtLMEQE7ZFE1TCbdTfpzQN0LEcffg2DHes=; b=OmHYdKsZn53XzTgHlqAfjmWlrWi56j4pV6t8zldbvzdb5Onl8BAvIssNRRvl75m5TcyZbVzsd zTg/3xdGzJSAbygPKMXchIItDH47Ddqr4sWDu6419a3m+d6DIdv5kax 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) 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: 9acb8423-1591-46a1-9848-08dd39221a78 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?WwGoMIabAiG0uRQL/ABZjvTJ4ja0IQT?= =?utf-8?q?cYuSJ+KZvij3vscakazn9bMb0oZlIIZ938maFtOlbaOXrPPBhtTKtDj97+bOlkar8?= =?utf-8?q?SliSSV1w22TfSJEAH7SVGY+mQM+A6LsYN8OXCPvPoUoO9773bV5GQE4XiD6VXwz1g?= =?utf-8?q?M+sRmtUUniEMoHoY3ziw5WZ8irkU7QCagFRqMkE6aaGXuDdfhM00YfZMbJFCispCS?= =?utf-8?q?oS09mMGq+VnWedOzZ3E17J/9AdMPNaw7z9ycC4pDhZrX580gC4CpGgYYh+XLb6lo/?= =?utf-8?q?CUPHUzGnnR11y5z/+uBqsfZyOI08yb2jg4xzTXZJ1yZUc74LCQeRJ2wOvlvOqCqo8?= =?utf-8?q?i9XDLuzE/OoPqKvQ+OEW+4vHLxfOcteP3DDHyKvU9gATu138v5f1mBI/lMuiYKe68?= =?utf-8?q?sfwbsMp2PHk/aeOsz9ChH+ZRvEkSaqvS+HebW1atdpmpI2J+tEca2vIXquPT+pTGR?= =?utf-8?q?WAxmsAtgfbMxVNndnoHp+8tlrmYlcjoXBvzG0vo7GWdm3X1fD5OaVheGwVXpvv+gO?= =?utf-8?q?FtL/YfwLVDNhfNDYeW/zgjl78dUg2QZ5W7VR3epwDgzWjP41qP+8F/4wNzMgHwgaE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TRY:;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?9jMXg5V4fVUdCJjb0NT8glwR00WI?= =?utf-8?q?aJLziESlhcCmdlVgVQo9AOhFzuZmlvi3fK+fNQU8Ybd3giGhjN2NhmGkGplHtgd99?= =?utf-8?q?IDeOK86gm05U2BXD/jY1yniEk1xoG69uar/1hNSj46uDDX7TI9khNDqo2DOaAmf7Y?= =?utf-8?q?mvUFsPGb7FDpetGnGE3pk3c6r12jj4E3GKw5J3EPecjfy9m/iADOrjluvG9MJtpSu?= =?utf-8?q?QGXDFmpRZjfv9QYF1lC5RD6uUtQ/dZoC92cirWC9G+AFWv5EoTUTj3dmy6lyAi+MF?= =?utf-8?q?ky8uUW/n7azQ04pWDe+C6O33ODuvlcuauG1AyJD9g+xajkNWQvVgXjbCsU41xcTF8?= =?utf-8?q?7XKogBJO8Rl5dWJExt1ccKWZ0VPrTP0Ak4H0jLH69L5eMP7PBhO3GA/xR/NypO66A?= =?utf-8?q?Rc2wDUCYRb2zrr7iQ0CuygSZfHD9etOmF5UWTEWkyyaE8+Q6pAsF/zU9kMxt8AVaq?= =?utf-8?q?kVRQVe7X3D11GeX2ny4xd9mLdib6o7m8SG0OVxF2mqHXx1wpDkpNL1dFgivTmH2Do?= =?utf-8?q?/LF+3AKGjYrjaZrUAuO5botO9v4pfGrTFixPVVOWru9oGGxEs1a4KVpUFRmQ1ztPG?= =?utf-8?q?mYC4DnVTrrXU3NubYuGDGV72cCvwZ9K/E3xI8XJUEGd5rvoGI1bS8qp0w6VJmlda4?= =?utf-8?q?FJ2vD0VApeTK4sy30v1gM5bWLHYxuWomUAIx5SG8OKhL/BovG7VFPDS7H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Id: 9acb8423-1591-46a1-9848-08dd39221a78 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:39.3248 (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: QDk7pnRgzhcu7x+9aK7fB3dtQ6b19ALlBADvihW9UTlbWDr0BwpBHRHHK9Z7kd7Q0ss0nGnq6ZC9cabRr42kBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7778 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250119_231444_231529_A5C0C3C8 X-CRM114-Status: GOOD ( 11.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
scmi: Bypass set fwnode and introduce allow/block list to address devlink issue
|
expand
|
diff --git a/drivers/pinctrl/freescale/pinctrl-imx-scmi.c b/drivers/pinctrl/freescale/pinctrl-imx-scmi.c index 8f15c4c4dc4412dddb40505699fc3f459fdc0adc..058b4f0477039d57ddae06f385ad809cbb4784d6 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,9 +299,6 @@ static int scmi_pinctrl_imx_probe(struct scmi_device *sdev) if (!handle) return -EINVAL; - if (!of_machine_compatible_match(scmi_pinctrl_imx_allowlist)) - return -ENODEV; - pinctrl_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PINCTRL, &ph); if (IS_ERR(pinctrl_ops)) return PTR_ERR(pinctrl_ops); @@ -339,8 +331,13 @@ static int scmi_pinctrl_imx_probe(struct scmi_device *sdev) return pinctrl_enable(pmx->pctldev); } +static const char * const scmi_pinctrl_imx_allowlist[] = { + "fsl,imx95", + NULL +}; + static const struct scmi_device_id scmi_id_table[] = { - { SCMI_PROTOCOL_PINCTRL, "pinctrl-imx" }, + { SCMI_PROTOCOL_PINCTRL, "pinctrl-imx", NULL, scmi_pinctrl_imx_allowlist }, { } }; MODULE_DEVICE_TABLE(scmi, scmi_id_table);