WSL2-Linux-Kernel/drivers/hwmon/pmbus
Václav Kubernát 2d101db3e5 hwmon: (pmbus/fsp-3y) Fix FSP-3Y YH-5151E non-compliant vout encoding
I didn't properly test the driver for YH-5151E, so it was completely
broken. Firstly, the log/real mapping was incorrect in one case.
Secondly, PMBus specifies that output voltages should be in the linear16
encoding. However, the YH-5151E is non-compliant and uses linear11.
YM-2151E isn't affected by this. Fix this by converting the values
inside the read functions. linear16 gets the exponent from the VOUT_MODE
command. The device doesn't support it, so I have to manually supply the
value for it.

Both supported devices have now been tested to report correct vout
values.

Fixes: 1734b4135a ("hwmon: Add driver for fsp-3y PSUs and PDUs")
Signed-off-by: Václav Kubernát <kubernat@cesnet.cz>
Link: https://lore.kernel.org/r/20210429075337.110502-1-kubernat@cesnet.cz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2021-05-10 06:27:33 -07:00
..
Kconfig hwmon: (pmbus) Add pmbus driver for MAX15301 2021-04-20 06:50:14 -07:00
Makefile hwmon: (pmbus) Add pmbus driver for MAX15301 2021-04-20 06:50:14 -07:00
adm1266.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
adm1275.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
bel-pfe.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
bpa-rs600.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
fsp-3y.c hwmon: (pmbus/fsp-3y) Fix FSP-3Y YH-5151E non-compliant vout encoding 2021-05-10 06:27:33 -07:00
ibm-cffps.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
inspur-ipsps.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
ir35221.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
ir36021.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
ir38064.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
irps5401.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
isl68137.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
lm25066.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
ltc2978.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
ltc3815.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max8688.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max15301.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max16064.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max16601.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max20730.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max20751.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max31785.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
max34440.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
mp2975.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
pm6764tr.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
pmbus.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
pmbus.h hwmon: (pmbus) Add pmbus_set_update() function to set update flag 2021-04-20 06:50:14 -07:00
pmbus_core.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
pxe1610.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
q54sj108a2.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
stpddc60.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
tps40422.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
tps53679.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
ucd9000.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
ucd9200.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
xdpe12284.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00
zl6100.c hwmon: (pmbus) Introduce PMBUS symbol namespace 2021-04-20 06:50:14 -07:00