hwmon: (pmbus/fsp-3y) Fix FSP-3Y YH-5151E VOUT
authorVáclav Kubernát <kubernat@cesnet.cz>
Thu, 13 May 2021 20:11:10 +0000 (22:11 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 16 May 2021 23:00:55 +0000 (16:00 -0700)
commitc2a338c9395eb843a9a11a2385f4b00cd0978494
treeb119ca4862b45d03e63cd5ad70af4c20e63a46c2
parent35d470b5fbc9f82feb77b56bb0d5d0b5cd73e9da
hwmon: (pmbus/fsp-3y) Fix FSP-3Y YH-5151E VOUT

After testing new YH-5151E devices, we found out that not all YH-5151E
work the same. The newly tested devices actually report vout correctly
in linear16 (even though they're still YH-5151E). We suspect that it is
because these new devices have a different firmware version, but that is
unconfirmed. The version cannot be queried through PMBus.

The compliant versions of YH-5151E report VOUT_MODE normally, so we turn
on the linear11 workaround only if VOUT_MODE doesn't report anything.

Signed-off-by: Václav Kubernát <kubernat@cesnet.cz>
Link: https://lore.kernel.org/r/20210513201110.313523-1-kubernat@cesnet.cz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/fsp-3y.c