diff options
| author | Václav Kubernát <[email protected]> | 2021-04-29 07:53:38 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2021-05-10 13:27:33 +0000 |
| commit | 2d101db3e5be3bbee6001d4227705cec70ecb82e (patch) | |
| tree | 739a957bb9a52d34c014cca7c1fc8c0581f291de /tools/perf/scripts/python/flamegraph.py | |
| parent | hwmon: (occ) Fix poll rate limiting (diff) | |
| download | kernel-2d101db3e5be3bbee6001d4227705cec70ecb82e.tar.gz kernel-2d101db3e5be3bbee6001d4227705cec70ecb82e.zip | |
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: 1734b4135a62 ("hwmon: Add driver for fsp-3y PSUs and PDUs")
Signed-off-by: Václav Kubernát <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
