[PATCH 0/2] firmware: arm_scmi: Ensure automatic module loading
Bjorn Andersson <[email protected]> Tue, 16 Jun 2026 18:09:14 +0000
| Newsgroups | org.kernel.vger.arm-scmi,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
SCMI drivers such as the Arm SCMI CPUfreq driver are allowed to built as modules, but they are then not automatically loaded. Rework the SCMI device table alias support to make modpost consume the information from MODULE_DEVICE_TABLE(scmi, ...) and allow drivers to be loaded based on this information, if known. Also add a protocol-based alias to also trigger driver loading when only the SCMI protocol id is known. Signed-off-by: Bjorn Andersson <[email protected]> --- Bjorn Andersson (2): module: add SCMI device table alias support firmware: arm_scmi: request modules for discovered protocols drivers/firmware/arm_scmi/bus.c | 19 +++++++++---------- drivers/firmware/arm_scmi/driver.c | 2 ++ include/linux/mod_devicetable.h | 12 ++++++++++++ include/linux/scmi_protocol.h | 6 +----- scripts/mod/devicetable-offsets.c | 4 ++++ scripts/mod/file2alias.c | 13 +++++++++++++ 6 files changed, 41 insertions(+), 15 deletions(-) --- base-commit: 8d6dbbbe3ba62de0a63e962ee004afb848c8e3ac change-id: 20260616-scmi-modalias-0f32421bd452 Best regards, -- Bjorn Andersson <[email protected]>