aboutsummaryrefslogtreecommitdiff
path: root/lib/zstd/common
diff options
context:
space:
mode:
authorVadim Pasternak <[email protected]>2023-02-12 16:57:30 +0200
committerGuenter Roeck <[email protected]>2023-02-12 07:21:40 -0800
commita1ffd3c46267ee5c807acd780e15df9bb692223f (patch)
treec656a6c1313331b01670af51756b6f6b1414ce6c /lib/zstd/common
parent102be2c2420bd156a94ea509932c9eaef89b9424 (diff)
hwmon: (mlxreg-fan) Return zero speed for broken fan
Currently for broken fan driver returns value calculated based on error code (0xFF) in related fan speed register. Thus, for such fan user gets fan{n}_fault to 1 and fan{n}_input with misleading value. Add check for fan fault prior return speed value and return zero if fault is detected. Fixes: 65afb4c8e7e4 ("hwmon: (mlxreg-fan) Add support for Mellanox FAN driver") Signed-off-by: Vadim Pasternak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/zstd/common')
0 files changed, 0 insertions, 0 deletions