[PATCH v2 1/2] module: add SCMI device table alias support

Frank Li Frank.li at oss.nxp.com
Thu Jun 18 11:16:46 PDT 2026


On Thu, Jun 18, 2026 at 03:56:34PM +0000, Bjorn Andersson wrote:
>
> SCMI client drivers already describe their bus match data with
> MODULE_DEVICE_TABLE(scmi, ...), but modpost does not know how to consume
> SCMI device tables. As a result, SCMI modules do not get generated module
> aliases from their id tables.
>
> Move struct scmi_device_id to mod_devicetable.h so it has a fixed layout
> visible to modpost, add the corresponding generated offsets and teach
> file2alias to emit scmi:<protocol>:<name> aliases.
>
> Use the same stable alias format for SCMI device uevents and sysfs
> modaliases. The previous string included the instance-specific device
> name, which is not useful for matching modules.
>
> Assisted-by: Codex:GPT-5.5
> Reviewed-by: Hans de Goede <johannes.goede at oss.qualcomm.com>
> Signed-off-by: Bjorn Andersson <bjorn.andersson at oss.qualcomm.com>
> ---

Reviewed-by: Frank Li <Frank.Li at nxp.com>



More information about the linux-arm-kernel mailing list