[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250825-imx9-sm-v2-0-0bae0265e66a@nxp.com>
Date: Mon, 25 Aug 2025 15:00:29 +0800
From: Peng Fan <peng.fan@....com>
To: Shawn Guo <shawnguo@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, Arnd Bergmann <arnd@...db.de>,
Sudeep Holla <sudeep.holla@....com>,
Cristian Marussi <cristian.marussi@....com>
Cc: imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, Peng Fan <peng.fan@....com>
Subject: [PATCH v2 0/3] firmware: imx: Add stub functions for MISC/CPU/LMM
APIs
To ensure successful builds when CONFIG_IMX_SCMI_[MISC,CPU,LMM]_DRV are not
enabled, this patchset adds static inline stub implementations:
These stubs return -EOPNOTSUPP to indicate that the functionality is not
supported in the current configuration. This avoids potential build or
link errors in code that conditionally calls these functions based on
feature availability.
The initial support for SCMI MISC API was to use CONFIG_IMX_SCMI_MISC_EXT
to guard the API. But this is wrong. There was an commit [1] that tried to
address build issue for MISC API, but the better fix should use
CONFIG_IMX_SCMI_MISC_DRV to guard the APIs. Because when user driver
reference the APIs, but CONFIG_IMX_SCMI_MISC_DRV is not defined, there
will be link error.
This patchset is to fix the issues for all the three drivers.
I add Fixes tag to the patchset, so I not delay the sending until RC1.
[1] 540c830212ed ("firmware: imx: remove duplicate scmi_imx_misc_ctrl_get()")
Signed-off-by: Peng Fan <peng.fan@....com>
---
Changes in v2:
- Add R-b from Cristian
- Update commit log in patch 1 per Arnd
- Link to v1: https://lore.kernel.org/r/20250807-imx9-sm-v1-0-3489e41a6fda@nxp.com
---
Peng Fan (3):
firmware: imx: Add stub functions for SCMI MISC API
firmware: imx: Add stub functions for SCMI LMM API
firmware: imx: Add stub functions for SCMI CPU API
include/linux/firmware/imx/sm.h | 47 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
---
base-commit: 706168a6b4c3560b7930a2b00899f4e6e8520b22
change-id: 20250807-imx9-sm-bea018f06042
Best regards,
--
Peng Fan <peng.fan@....com>
Powered by blists - more mailing lists