firmware: arm_scmi: Ensure automatic module loading
Get series with b4
b4 am [email protected] change-id 20260616-scmi-modalias-0f32421bd452Versions newest first
- v2 Latest2 patches 13 repliesIn review
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Use request_module_nowait()
- Drop #include <linux/mod_devicetable.h> from scmi_protocol.h
- Link to v1: https://patch.msgid.link/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | module: add SCMI device table alias supportdrivers/ drivers/ drivers/ +18 more | +53 | 2 replies | |
| 2/2 | firmware: arm_scmi: request modules for discovered protocolsdrivers/ include/ scripts/ | +6 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Hans de Goede | Frank Li |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] firmware: arm_scmi: Ensure automatic module loading
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.
---
Changes in v2:
- Use request_module_nowait()
- Drop #include <linux/mod_devicetable.h> from scmi_protocol.h
- Link to v1: https://patch.msgid.link/[email protected]
To: Sudeep Holla <[email protected]>
To: Cristian Marussi <[email protected]>
To: Michael Turquette <[email protected]>
To: Nicolas Schier <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Brian Masney <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Viresh Kumar <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Jyoti Bhayana <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: David Lechner <[email protected]>
Cc: Nuno Sá <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Ulf Hansson <[email protected]>
Cc: Liam Girdwood <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Bjorn Andersson (2):
module: add SCMI device table alias support
firmware: arm_scmi: request modules for discovered protocols
drivers/clk/clk-scmi.c | 1 + drivers/cpufreq/scmi-cpufreq.c | 1 + drivers/firmware/arm_scmi/bus.c | 20 ++++++++++---------- drivers/firmware/arm_scmi/driver.c | 3 +++ drivers/firmware/arm_scmi/scmi_power_control.c | 1 + drivers/firmware/imx/sm-cpu.c | 1 + drivers/firmware/imx/sm-lmm.c | 1 + drivers/firmware/imx/sm-misc.c | 1 + drivers/hwmon/scmi-hwmon.c | 1 + drivers/iio/common/scmi_sensors/scmi_iio.c | 1 + drivers/input/keyboard/imx-sm-bbm-key.c | 1 + drivers/pmdomain/arm/scmi_perf_domain.c | 1 + drivers/pmdomain/arm/scmi_pm_domain.c | 1 + drivers/powercap/arm_scmi_powercap.c | 1 + drivers/regulator/scmi-regulator.c | 1 + drivers/reset/reset-scmi.c | 1 + drivers/rtc/rtc-imx-sm-bbm.c | 1 + include/linux/mod_devicetable.h | 12 ++++++++++++ include/linux/scmi_protocol.h | 5 +---- scripts/mod/devicetable-offsets.c | 4 ++++ scripts/mod/file2alias.c | 13 +++++++++++++ 21 files changed, 58 insertions(+), 14 deletions(-)
---
base-commit: 8d6dbbbe3ba62de0a63e962ee004afb848c8e3ac
change-id: 20260616-scmi-modalias-0f32421bd452
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>