Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH] hwmon: (cgbc-hwmon) Add module alias
@ 2026-11-23  7:27 Markus Haberlander via B4 Relay
  2026-11-23  7:29 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Haberlander via B4 Relay @ 2026-11-23  7:27 UTC (permalink / raw)
  To: Thomas Richard, Guenter Roeck; +Cc: linux-hwmon, stable, Markus Haberlander

From: Markus Haberlander <markus.haberlander@rosenberger.com>

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")
Cc: stable@vger.kernel.org
Signed-off-by: Markus Haberlander <markus.haberlander@rosenberger.com>
---
 drivers/hwmon/cgbc-hwmon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/cgbc-hwmon.c b/drivers/hwmon/cgbc-hwmon.c
index ba21ed8f0..d1f20db4b 100644
--- a/drivers/hwmon/cgbc-hwmon.c
+++ b/drivers/hwmon/cgbc-hwmon.c
@@ -336,3 +336,4 @@ module_platform_driver(cgbc_hwmon_driver);
 MODULE_AUTHOR("Thomas Richard <thomas.richard@bootlin.com>");
 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,
--  
Markus Haberlander <markus.haberlander@rosenberger.com>



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-23  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  7:27 [PATCH] hwmon: (cgbc-hwmon) Add module alias Markus Haberlander via B4 Relay
2026-11-23  7:29 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox