Re: [PATCH v10 7/7] platform/x86: lenovo-wmi-other: Add HWMON for fan reporting/tuning

From: Kurt Borja

Date: Mon Jan 19 2026 - 17:26:52 EST


On Sat Jan 17, 2026 at 4:00 PM -05, Rong Zhang wrote:
> Register an HWMON device for fan reporting/tuning according to
> Capability Data 00 (capdata00) and Fan Test Data (capdata_fan) provided
> by lenovo-wmi-capdata. The corresponding HWMON nodes are:
>
> - fanX_div: internal RPM divisor
> - fanX_input: current RPM
> - fanX_max: maximum RPM
> - fanX_min: minimum RPM
> - fanX_target: target RPM (tunable, 0=auto)
>
> Information from capdata00 and capdata_fan are used to control the
> visibility and constraints of HWMON attributes. Fan info from capdata00
> is collected on bind, while fan info from capdata_fan is collected in a
> callback. Once all fan info is collected, register the HWMON device.
>
> Signed-off-by: Rong Zhang <i@xxxxxxxx>
> Reviewed-by: Derek J. Clark <derekjohn.clark@xxxxxxxxx>

Can't wait to for this to reach stable. Thanks!

Tested-by: Kurt Borja <kuurtb@xxxxxxxxx>

--
Thanks,
~ Kurt