Re: [PATCH v2 1/2] module: add SCMI device table alias support
Frank Li <[email protected]>
| Newsgroups | gmane.linux.kernel.input,gmane.linux.ports.arm.kernel,gmane.linux.kernel,gmane.linux.kbuild.devel,gmane.linux.kernel.clk,gmane.linux.power-management.general,gmane.linux.kernel.hwmon,gmane.linux.kernel.iio |
|---|---|
| Message-ID | <ajQ2Dt17PamZ8Ssp@SMW015318> |
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 <[email protected]> > Signed-off-by: Bjorn Andersson <[email protected]> > --- Reviewed-by: Frank Li <[email protected]>