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 !
In V2, an additional patch is added to simply add the proper/required
MODULE_DEVICE_TABLE to SCMI transport driver to enable autoloading also
for those.
Thanks,
Cristian
V1 --> V2
- added tags
- added Transport aliases patch via MODULE_DEVICE_TABLE
Cristian Marussi (3):
firmware: arm_scmi: Support vendor protocol modules autoloading
firmware: arm_scmi: Add module aliases to i.MX vendor protocols
firmware: arm_scmi: Add aliases to transport modules
drivers/firmware/arm_scmi/driver.c | 56 +++++++++++++++----
.../firmware/arm_scmi/transports/mailbox.c | 1 +
drivers/firmware/arm_scmi/transports/smc.c | 1 +
drivers/firmware/arm_scmi/transports/virtio.c | 1 +
.../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 +--
7 files changed, 60 insertions(+), 18 deletions(-)
--
2.47.0