]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (mlxreg-fan) Add support for fan drawers capability and present registers
authorVadim Pasternak <vadimp@nvidia.com>
Mon, 22 Mar 2021 17:22:37 +0000 (19:22 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 30 Mar 2021 10:36:40 +0000 (03:36 -0700)
commit02bb6badc9fb03056eb405e189efa62b1825782b
tree5bcd917421fdf54190d0ea7af033f3ef99d12af8
parent66e57f47689b1bdf7438cb5d31b935d327667c8e
hwmon: (mlxreg-fan) Add support for fan drawers capability and present registers

Add support for fan drawer's capability and present registers in order
to set mapping between the fan drawers and tachometers. Some systems
are equipped with fan drawers with one tachometer inside. Others with
fan drawers with several tachometers inside. Using present register
along with tachometer-to-drawer mapping allows to skip reading missed
tachometers and expose input for them as zero, instead of exposing
fault code returned by hardware.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20210322172237.2213584-1-vadimp@nvidia.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/mlxreg-fan.c