hwmon: (pmbus/max31785) Support revision "B"
authorMatthew Barth <msbarth@linux.ibm.com>
Mon, 1 Feb 2021 21:22:17 +0000 (15:22 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 2 Feb 2021 03:46:34 +0000 (19:46 -0800)
commit996dc09c8e773f348086d03ded4cb96950f116bb
tree91c03d24c59fe1fa6a73e73c2c3390e466fdfa06
parent43d147482788c7e5d26fe5ba2893fea2e0ae3900
hwmon: (pmbus/max31785) Support revision "B"

There was an issue in how the tach feedbacks of dual rotor fans were
reported during any change in fan speeds with revision "A" of the
MAX31785. When the fan speeds would transition to a new target speed,
the rotor not wired to the TACH input when TACHSEL = 0 would report a
speed of 0 until the new target was reached. This has been fixed,
resulting in a revision "B" update where the MFR_REVISION of "B" is
0x3061.

Signed-off-by: Matthew Barth <msbarth@linux.ibm.com>
Link: https://lore.kernel.org/r/20210201212217.73721-1-msbarth@linux.ibm.com
[groeck: Change 'ret' variable type to int]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/max31785.c