Skip to content

Commit 3f3f0e5

Browse files
cris-masudeep-holla
authored andcommitted
firmware: arm_scmi: Add aliases to transport modules
SCMI transports when built as loadable modules should be loaded by the subsystem they plug into, based on the related subsystem specific aliases. Add, where missing, the MODULE_DEVICE_TABLE() directives needed to generate the aliases required to enable autoloading for SCMI transports. Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Message-Id: <20241209164957.1801886-4-cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
1 parent d4cc891 commit 3f3f0e5

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/firmware/arm_scmi/transports/mailbox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ static const struct of_device_id scmi_of_match[] = {
378378
{ .compatible = "arm,scmi" },
379379
{ /* Sentinel */ },
380380
};
381+
MODULE_DEVICE_TABLE(of, scmi_of_match);
381382

382383
DEFINE_SCMI_TRANSPORT_DRIVER(scmi_mailbox, scmi_mailbox_driver,
383384
scmi_mailbox_desc, scmi_of_match, core);

drivers/firmware/arm_scmi/transports/smc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ static const struct of_device_id scmi_of_match[] = {
301301
{ .compatible = "qcom,scmi-smc" },
302302
{ /* Sentinel */ },
303303
};
304+
MODULE_DEVICE_TABLE(of, scmi_of_match);
304305

305306
DEFINE_SCMI_TRANSPORT_DRIVER(scmi_smc, scmi_smc_driver, scmi_smc_desc,
306307
scmi_of_match, core);

drivers/firmware/arm_scmi/transports/virtio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,7 @@ static const struct virtio_device_id id_table[] = {
921921
{ VIRTIO_ID_SCMI, VIRTIO_DEV_ANY_ID },
922922
{ 0 }
923923
};
924+
MODULE_DEVICE_TABLE(virtio, id_table);
924925

925926
static struct virtio_driver virtio_scmi_driver = {
926927
.driver.name = "scmi-virtio",

0 commit comments

Comments
 (0)