mbox series

[0/3] Add SCMI Vendor module autoload support

Message ID 20241209164957.1801886-1-cristian.marussi@arm.com (mailing list archive)
Headers show
Series Add SCMI Vendor module autoload support | expand

Message

Cristian Marussi Dec. 9, 2024, 4:49 p.m. UTC
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(-)

Comments

Sudeep Holla Jan. 2, 2025, 3:37 p.m. UTC | #1
On Mon, 09 Dec 2024 16:49:54 +0000, Cristian Marussi wrote:
> 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:
>
> [...]

Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!

[1/3] firmware: arm_scmi: Support vendor protocol modules autoloading
      https://git.kernel.org/sudeep.holla/c/54cf6e786caa
[2/3] firmware: arm_scmi: Add module aliases to i.MX vendor protocols
      https://git.kernel.org/sudeep.holla/c/d4cc8912cbff
[3/3] firmware: arm_scmi: Add aliases to transport modules
      https://git.kernel.org/sudeep.holla/c/3f3f0e53e9ae
--
Regards,
Sudeep