diff options
author | Guenter Roeck <[email protected]> | 2011-03-01 13:49:18 -0800 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2011-03-14 22:39:08 -0700 |
commit | 83274c68a34094bbb465589e61f91a3714f8d026 (patch) | |
tree | feeac423cf28ad6e5063f93620166a1954d1f4a6 /tools/perf/util/trace-event-scripting.c | |
parent | a3eeb453539d7ad9c0d8cced1e0883a6a8ed18f3 (diff) |
hwmon: (pmbus) More stringent checking of VOUT_MODE register
Some PMBus chips do not support the VOUT_MODE register. To make matters worse,
such chips may not return an error when reading the register either, but instead
return 0xff.
Check if the register exists using pmbus_check_byte_register() before reading
its value. In addition, validate the returned value and ignore it if it is 0xff
(which is invalid).
Reported-by: Greg Schnorr <[email protected]>
Tested-by: Greg Schnorr <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Greg Schnorr <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions