]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
firmware: imx: Add stub functions for SCMI LMM API
authorPeng Fan <peng.fan@nxp.com>
Mon, 25 Aug 2025 07:00:31 +0000 (15:00 +0800)
committerShawn Guo <shawnguo@kernel.org>
Thu, 11 Sep 2025 01:59:08 +0000 (09:59 +0800)
commit3fb91b5c86d0fb5ff6f65c30a4f20193166e22fe
tree6914cf22542f5681ea5490203c5094cae1443bda
parentb2461e20fa9ac18b1305bba5bc7e22ebf644ea01
firmware: imx: Add stub functions for SCMI LMM API

To ensure successful builds when CONFIG_IMX_SCMI_LMM_DRV is not enabled,
this patch adds static inline stub implementations for the following
functions:

  - scmi_imx_lmm_operation()
  - scmi_imx_lmm_info()
  - scmi_imx_lmm_reset_vector_set()

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.

Fixes: 7242bbf418f0 ("firmware: imx: Add i.MX95 SCMI LMM driver")
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
include/linux/firmware/imx/sm.h