From: Andreas Kemnade andreas@kemnade.info
[ Upstream commit 80038a758b7fc0cdb6987532cbbf3f75b13e0826 ]
Add module alias to have it autoloaded.
Signed-off-by: Andreas Kemnade andreas@kemnade.info Link: https://lore.kernel.org/r/20250909080249.30656-1-andreas@kemnade.info Signed-off-by: Guenter Roeck linux@roeck-us.net Signed-off-by: Sasha Levin sashal@kernel.org ---
LLM Generated explanations, may be completely bogus:
YES **Rationale** - Adding `MODULE_ALIAS("platform:sy7636a-temperature");` in `drivers/hwmon/sy7636a-hwmon.c:105` ensures udev can auto-load the module when the MFD core registers the `sy7636a-temperature` platform device. Today the driver lacks any `MODULE_ALIAS` or `MODULE_DEVICE_TABLE`, so built-as-module systems never bind automatically and the hwmon sensor stays unavailable unless manually `modprobe`d—an obvious functional bug. - The platform child is created by `drivers/mfd/simple-mfd-i2c.c:66-73`, which exposes the `sy7636a-temperature` modalias; the regulator sibling already has a matching alias via its platform ID table (`drivers/regulator/sy7636a-regulator.c:122-134`), highlighting that the hwmon side simply missed the same piece. - History (`git log -- drivers/hwmon/sy7636a-hwmon.c`) shows the driver has shipped without an alias since it was introduced in commit de34a40532507 (Jan 2022), so every stable kernel carrying this driver is affected. - The fix is a one-line metadata change with no runtime impact beyond enabling the intended autoload path, so regression risk is negligible and it squarely fits stable rules.
**Next Steps** 1. Queue the patch for all supported stable trees that include `drivers/hwmon/sy7636a-hwmon.c`.
drivers/hwmon/sy7636a-hwmon.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/hwmon/sy7636a-hwmon.c b/drivers/hwmon/sy7636a-hwmon.c index ed110884786b4..a12fc0ce70e76 100644 --- a/drivers/hwmon/sy7636a-hwmon.c +++ b/drivers/hwmon/sy7636a-hwmon.c @@ -104,3 +104,4 @@ module_platform_driver(sy7636a_sensor_driver);
MODULE_DESCRIPTION("SY7636A sensor driver"); MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:sy7636a-temperature");