Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (mlxreg-fan) Extend number of supported fans

Some new big modular systems can be equipped with up to 24 fans.
Extend maximum number of fans accordingly.

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

authored by

Vadim Pasternak and committed by
Guenter Roeck
dadca53d a1f38987

+11 -1
+11 -1
drivers/hwmon/mlxreg-fan.c
··· 12 12 #include <linux/regmap.h> 13 13 #include <linux/thermal.h> 14 14 15 - #define MLXREG_FAN_MAX_TACHO 14 15 + #define MLXREG_FAN_MAX_TACHO 24 16 16 #define MLXREG_FAN_MAX_PWM 4 17 17 #define MLXREG_FAN_PWM_NOT_CONNECTED 0xff 18 18 #define MLXREG_FAN_MAX_STATE 10 ··· 287 287 288 288 static const struct hwmon_channel_info * const mlxreg_fan_hwmon_info[] = { 289 289 HWMON_CHANNEL_INFO(fan, 290 + HWMON_F_INPUT | HWMON_F_FAULT, 291 + HWMON_F_INPUT | HWMON_F_FAULT, 292 + HWMON_F_INPUT | HWMON_F_FAULT, 293 + HWMON_F_INPUT | HWMON_F_FAULT, 294 + HWMON_F_INPUT | HWMON_F_FAULT, 295 + HWMON_F_INPUT | HWMON_F_FAULT, 296 + HWMON_F_INPUT | HWMON_F_FAULT, 297 + HWMON_F_INPUT | HWMON_F_FAULT, 298 + HWMON_F_INPUT | HWMON_F_FAULT, 299 + HWMON_F_INPUT | HWMON_F_FAULT, 290 300 HWMON_F_INPUT | HWMON_F_FAULT, 291 301 HWMON_F_INPUT | HWMON_F_FAULT, 292 302 HWMON_F_INPUT | HWMON_F_FAULT,