Message ID | 20241225-scmi-fwdevlink-v1-0-e9a3a5341362@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2069.outbound.protection.outlook.com [40.107.247.69]) (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 1A227E571 for <imx@lists.linux.dev>; Wed, 25 Dec 2024 08:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114883; cv=fail; b=Vh7A8HQz9ZPEMiogf83iBY2IRUUk1PJIZ5Z1wxj3kDdlbKw7cser9cZCcvet0cuAJ4OONSnItzDLZeQOWrxYGe6ounYjjQLhiJ4b2z87jGVkdCWqDEZc/0q1RkqriwreHrXDnxuV2wE4lCg3woVgHgM02NRKex4KcnfxZgbanrg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735114883; c=relaxed/simple; bh=pBDQOWh6iI+45zNi7juhRvgB4oMZ8Oq5fm588GU35AM=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=GgvIHNHtn3RPOBA5ObDzbcGB0ry7mB4fAQwNOgMV4isWHe36UpIc56b0+MDb+Z3InhM/C8McgG2II4FfBbm5Ht/+Wk+bvSSVtMReacTL1Nn8krn/td0qURAJdEoYc/htHUQ1Ta6bgGrPOv1hcCVdFrGOSJnMpQ4sl0RTBjH1yuE= 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=edFRq4fT; arc=fail smtp.client-ip=40.107.247.69 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="edFRq4fT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LOjtzf/Wf5pGLh3b4bxM4LT7tfCoSPO2aj+DCvb0SzOjcr/T067wUnqimdKC3CiboayztsUsFegHxoNoP06L5vlqdwm+RuOi+LBkUMAfvIV1ZoqEaLVTdxSQ60SULkD97aKtaMcXYcbEbkyCsN0DxwHkqRdD5S12xWSp3fkLyNQSk4xGQw73j/Nk9+SDD+w9DNfFvX2vsUrhMrAECJj8aSOvEW/dRgfE6wA0mcKxN/SZIqdbKMt42RIne/d7qsk0FsQv9l+0ElEIgJ3jCnuzDUfKghZrvNcRYi8cVXjgrktO4U7CvBpU5A5qeV6loJ2zxxxENgmawHPp1TlWHe+Oog== 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=fFdknnh7HdY9YpgH7rLFMSBs5V/QHNvpqvEC6nvYU9s=; b=clnQYntLuXBPYKaWp9wAPb23KO3JJupYDMI1hNN68iIqNg4Y6DboAlh7yM+87Ear89TcboxsILD99PRYzCDBFz8mKQeaQbxS0RnYYO0wJzXtMddmfQSk87PRU1TEeqkKBzKpG8W+Sd+kgjfpdzvU3SPRXUh4StL1uuQcFKvRwa+o7P/fV3qk6ofxap3PkEVfTiv/V/hOhzDCWQ+vaKgUz+vYFoNluM87iUp8koTZHVB9JO63DzyBIyMhEZjQyYk/rX+ZORDoqLZv2DKOm424kTXakOHWoMnY3LyLUFM6E35NaKv24ihzHelWSJoF0GXZHnfxbTsDBofWwz8k4z6/Gg== 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=fFdknnh7HdY9YpgH7rLFMSBs5V/QHNvpqvEC6nvYU9s=; b=edFRq4fT7/LVOLP/TXjrx1j2mdB5ps3m5FqL04HDVOytEJdyXCbMa/TTKNfiWTfOIQLlBzEhIlVsMTImphjmgMFPiaMdVjh8dFRTHxjMviGSmRgRHvBNSyNUg9VM0KwGA3jkcRflPXLJPomFESi5D3vxEbeIW+5jyUsgSohgtn1Fw+JvnF+WckPgOjVgqgsxsELF4m9FmOMh4xPX+tTai/W5GrgWC+DVSLP3QDVl7Pz0ebvg3fNwaGGdtT7Hrn+Mvj3Izr1ElPprkwQDdr7f+ic/urTCUZiXPIqSBKdyWzx3UgaUg/9GbvXr2bdEEMtimDYEdCpmeMolT+H8fKBZFg== 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:18 +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:17 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH 0/4] scmi: Bypass set fwnode to address devlink issue Date: Wed, 25 Dec 2024 16:20:43 +0800 Message-Id: <20241225-scmi-fwdevlink-v1-0-e9a3a5341362@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFvAa2cC/x3MQQqAIBBA0avErBMay0VdJVqYjjVUFgoWSHdPW r7F/xkiBaYIQ5UhUOLIpy/AugKzar+QYFsMspEdSqlENAcLd1tKO/tNaDcrbNFhTxpKdAVy/Pz DcXrfD/yiLBpgAAAA X-Change-ID: 20241225-scmi-fwdevlink-afb5131f19ea To: Sudeep Holla <sudeep.holla@arm.com>, Cristian Marussi <cristian.marussi@arm.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, 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=1735114854; l=1460; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=pBDQOWh6iI+45zNi7juhRvgB4oMZ8Oq5fm588GU35AM=; b=bMo8hwOpQooYEC2cTyug4SQBNhkEmbdDezbv5hdFxwgeVA5CGqX3U59U9GNKEbePJdD9uZL4O 5vMVeJUf6KhD6BfB4EchbR0VgPUAndVzeOEt3t1f3yixn+QNW08HzTw 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> 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: 57fbbe75-aeb6-41f4-3e3b-08dd24bd1ad9 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?NgtsgGdjkwjfmIgUxPsYXOr/ocaTEbM?= =?utf-8?q?02piuQCqHrsKeeEylngu0Uqw5vVEBJtcFCPTuKco0xEet3qrrTHtotZicGaGzuViI?= =?utf-8?q?D85IeTsUR/xepB8Hyhq84WHyktVTzFCuMO4c2U0kM5aRsdIVsRgEWAs2tOmxDnD4x?= =?utf-8?q?/xf30lALbVzcbsEZljHel+MVIvliPMX+KEFBZ5rClmulR2Q4RtKKeH9caDoNzXWX2?= =?utf-8?q?C+cpt3EeNCK7ldBCIpBmBM7Wj5gKAoZ+DAwwy8JLmOVBPguu1ABY4l+tcumpohp9d?= =?utf-8?q?rT5b5b/ZUKYAA/zjR7MWNcVD8rOxfJW67prbW+Lw40KpHnXhwhgRrx1Xq7uffPVbP?= =?utf-8?q?5mtzQhHUT3aHaNRXphLaLRoYpQTpQCvU69GTJRjJ7T/F0SxpZyxKfsz/No9O8tnRj?= =?utf-8?q?p4RKFIZxJAxUU7Dz4JKam1ZpxxYcm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52i5OBaaVtcNY1X6eFzWy48gPG3RzuAJ?= =?utf-8?q?2QwKTPzQ8A05iiL/ikfJ6kExgpd3NFH3YVed8q46YzdvTS/f5Tf/TQy9OFAFWN5SP?= =?utf-8?q?TeA4I7o7GUynhD+hYYabjq+2mDgbY50yA=3D=3D?= 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?AQbiiCt5PR54ZsIkNJXJJa30Dx0z?= =?utf-8?q?L5UMzVQ6XBmMG/wQmiIlpl8jVCnZq3B6LZSCsN3CugRzvBsXjvtToQJ7bocfA55Q8?= =?utf-8?q?T+TxY91/NFOU00znHcP+RLYnfnFmll5XgDSwwcYWFkc3my24SF52735zOpzjXSGfL?= =?utf-8?q?ZFVHKdZ66DLv63yUnGjAPRNYf3kfLxvSb0GgyY2GR5xmz/y26ZlD6WWhB+uJ+h6mu?= =?utf-8?q?fGsUoYcHnWRKBXyiEXc2zQ/5cqDeSk3izbPLxroPmSnVt7XNaG07ipU0hWoT9mSql?= =?utf-8?q?i2S1lRBrJuhrYlR6mvtJ1lqYPg/rr+8FnL8acYXlqMnGCUH39xzvi6mKZezz4COWE?= =?utf-8?q?N3pGslJZCfXomUxr8A/QgQ7jfsipXP4JUMDpwQoSSibrJC6mDzn4hQngFPXO8UHaB?= =?utf-8?q?RH83FE1/P/vX+AN8BJEUNcBrfKDphgF8iyVfOgat0f3GgwtaPNdOrosdnmJeXvXyf?= =?utf-8?q?LVmEDhE4kIUoO1VzWRjK0KixY7zPTcllKOhP2ZVS+cBVOibZ0NdHylsFIYyAP7oG7?= =?utf-8?q?mvJhRfE4WZm/8sqe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MOrOrmT/OApdtNPaCeaYEFYMcuk9Ro+oBLXWNqUEu3smEuCTNySfA?= =?utf-8?q?5I4pEtgzQKfdRtQSA6eKNgwEcD1FjilIQVe3Y1GVpl/hH7NQnzB6I6lj99gBHKjtc?= =?utf-8?q?yUHx9eRq0mBB?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57fbbe75-aeb6-41f4-3e3b-08dd24bd1ad9 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:17.8130 (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: urUtYWnDS7Q+FQ4oai3A28U7tRLvfg5BCTJrwk1KuAqycGgvuYKj/AVK4BslLPQCHgWOMiEp9mfEQvSGEa9DvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6985 |
Series |
scmi: Bypass set fwnode to address devlink issue
|
expand
|
Current scmi drivers not work well with devlink. This patchset is a retry to address the issue in [1] which was a few months ago. Current scmi devices are not created from device tree, they are created from a scmi_device_id entry of each driver with the protocol matches with the fwnode reg value, this means there could be multiple devices created for one fwnode, but the fwnode only has one device pointer. This patchset is to do more checking before setting the device fwnode. This may looks like hack, but seems no better way to make scmi works well with devlink. [1]: https://lore.kernel.org/arm-scmi/CAGETcx8m48cy-EzP6_uoGN7KWsQw=CfZWQ-hNUzz_7LZ0voG8A@mail.gmail.com/ Cc: Signed-off-by: Peng Fan <peng.fan@nxp.com> --- Peng Fan (4): firmware: arm_scmi: bus: Bypass setting fwnode for scmi cpufreq firmware: arm_scmi: bus: Bypass setting fwnode for pinctrl pinctrl: scmi: Check fwnode instead of machine compatible pinctrl: freescale: scmi: Check fwnode instead of machine compatible drivers/firmware/arm_scmi/bus.c | 29 +++++++++++++++++++++++++++- drivers/pinctrl/freescale/pinctrl-imx-scmi.c | 7 +------ drivers/pinctrl/pinctrl-scmi.c | 7 +------ 3 files changed, 30 insertions(+), 13 deletions(-) --- base-commit: 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2 change-id: 20241225-scmi-fwdevlink-afb5131f19ea Best regards,