Re: [PATCH v2 2/2] thermal: hwmon: Remove hwmon class device along with its parent

[email protected] Tue, 04 Aug 2026 20:19:33 +0000
Newsgroups org.kernel.vger.linux-hwmon
Message-ID <[email protected]>
> From: Rafael J. Wysocki <[email protected]>
>=20
> The current code creates one hwmon device per thermal zone type and that
> device is registered under the first thermal zone of the given type.
>=20
> That turns out to be problematic when the thermal zone holding the
> hwmon device is removed.
>=20
> For example, say that there are two ACPI thermal zones on a system
>=20
>  /sys/devices/virtual/thermal/thermal_zone0/
>  /sys/devices/virtual/thermal/thermal_zone1/
>=20
> The current code registers a hwmon class device for thermal_zone0 only:
>=20
> [ ... ]
> the current kernel coding style to align with the new "unlock" label.
>=20
> Link: https://lore.kernel.org/linux-pm/20260402021828.16556-1-liujia6264@=
gmail.com/
> Fixes: f6b6b52ef7a5 ("thermal_hwmon: Pass the originating device down to =
hwmon_device_register_with_info")
> Signed-off-by: Rafael J. Wysocki <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

--=20
Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/12947893.O9o76ZdvQC=
@rafael.j.wysocki?part=3D2