[PATCH v2 0/3] thermal: hwmon: Rework of automatic hwmon device registration
From: Rafael J. Wysocki
Date: Tue May 05 2026 - 08:01:24 EST
Hi All,
This is an update of
https://lore.kernel.org/linux-pm/5100596.31r3eYUQgx@rafael.j.wysocki/
sent mosty to address feedback from sashiko.dev:
https://sashiko.dev/#/patchset/5100596.31r3eYUQgx%40rafael.j.wysocki
There is an extra patch in this revision (the first one) that addresses
a possible thermal hwmon removal issue pointed out by sashiko.dev.
The second patch in the series reworks the automatic registration of hwmon
devices for thermal zones so that one hwmon device is registered for each of
them. This is done to address a thermal zone removal deadlock related to the
sharing of a hwmon device with other thermal zones of the same type (see the
changelog of patch [2/3] for details).
The last patch simplifies the thermal hwmon code further by using the
canonical mechanism for registering extra sysfs attributes of hwmon devices
instead of manually adding files to sysfs.
The patches are targeted at 7.2.
Thanks!