Skip to contentSkip to conversation

hwmon: (cgbc-hwmon) Add module alias

PATCH Applied Markus Haberlander 3 participants 3 messages Nov 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (cgbc-hwmon) Add module alias

The board controller's core driver adds the hwmon cell as platform device "cgbc-hwmon", but the driver declares no matching module alias. Built as a module, it is therefore not loaded automatically, unlike the GPIO, I2C and backlight drivers, and the sensors stay missing until it is loaded by hand.

Tested on a conga-PA7: with the alias, the driver loads at boot.

The patch and this changelog were drafted with the help of Claude Opus 5.5 and reviewed and tested by me.

Fixes 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")
---
 drivers/hwmon/cgbc-hwmon.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/cgbc-hwmon.c +1 -0
index ba21ed8f0..d1f20db4b 100644
@@ -336,3 +336,4 @@ module_platform_driver(cgbc_hwmon_driver);
 MODULE_AUTHOR("Thomas Richard <[email protected]>");
 MODULE_DESCRIPTION("Congatec Board Controller Hardware Monitoring Driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:cgbc-hwmon");

---
base-commit: 7940d60c4b165cd7c265bf17f86b8299b7f204b1
change-id: 20261123-cgbc-hwmon-alias-6fed8be4cb52

Best regards,

Signature · 1 line
Markus Haberlander <[email protected]>
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 8 lines

From: Markus Haberlander <[email protected]>

The board controller's core driver adds the hwmon cell as platform device "cgbc-hwmon", but the driver declares no matching module alias. Built as a module, it is therefore not loaded automatically, unlike the GPIO, I2C and backlight drivers, and the sensors stay missing until it is loaded by hand.

Quoted 8 lines

Tested on a conga-PA7: with the alias, the driver loads at boot.

The patch and this changelog were drafted with the help of Claude Opus 5.5 and reviewed and tested by me.

Fixes 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Applied
#2 lore raw
In reply to Markus Haberlander
Quoted 8 lines · Markus Haberlander

From: Markus Haberlander <[email protected]>

The board controller's core driver adds the hwmon cell as platform device "cgbc-hwmon", but the driver declares no matching module alias. Built as a module, it is therefore not loaded automatically, unlike the GPIO, I2C and backlight drivers, and the sensors stay missing until it is loaded by hand.

Quoted 8 lines

Tested on a conga-PA7: with the alias, the driver loads at boot.

The patch and this changelog were drafted with the help of Claude Opus 5.5 and reviewed and tested by me.

Fixes 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")

Applied.

Thanks,
Guenter