Commit 1180c79f authored by Vadim Pasternak's avatar Vadim Pasternak Committed by Guenter Roeck
Browse files

hwmon: mlxreg-fan: Prevent fans from getting stuck at 0 RPM



The fans controlled by the driver can get stuck at 0 RPM if they are
configured below a 20% duty cycle. The driver tries to avoid this by
enforcing a minimum duty cycle of 20%, but this is done after the fans
are registered with the thermal subsystem. This is too late as the
thermal subsystem can set their current state before the driver is able
to enforce the minimum duty cycle.

Fix by setting the minimum duty cycle before registering the fans with
the thermal subsystem.

Fixes: d7efb2eb ("hwmon: (mlxreg-fan) Extend driver to support multiply cooling devices")
Reported-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
Tested-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Signed-off-by: default avatarVadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20250730201715.1111133-1-vadimp@nvidia.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 1b237f19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment