[PATCH 0/2] Add SCMI Vendor module autoload support
From: Cristian Marussi
Date: Tue Dec 03 2024 - 16:13:02 EST
Hi,
a tiny series to add the capability to automatically load the proper
vendor protocol module when an SCMI driver tries to use it; while proper
vendor protocol selection is already provided by the SCMI core, automatic
loading of vendor protocols was not.
Lookup is now based on module aliases following the pattern:
scmi-protocol-0x<PROTO_ID_NN>-<VENDOR_ID>
In [2/2] proper aliases are added to existing i.MX Vendor protocols...
...could not find a better way to build the alias string automagically...
...any advice is welcome in these regards...and any feedback too !
Thanks,
Cristian
Cristian Marussi (2):
firmware: arm_scmi: Support vendor protocol modules autoloading
firmware: arm_scmi: Add module aliases to i.MX vendor protocols
drivers/firmware/arm_scmi/driver.c | 56 +++++++++++++++----
.../arm_scmi/vendors/imx/imx-sm-bbm.c | 5 +-
.../arm_scmi/vendors/imx/imx-sm-misc.c | 5 +-
include/linux/scmi_imx_protocol.h | 9 +--
4 files changed, 57 insertions(+), 18 deletions(-)
--
2.47.0