diff options
author | Alexander Soldatov <[email protected]> | 2019-04-17 21:03:29 +0300 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2019-06-23 18:33:01 -0700 |
commit | 8083034251f1e21271d3849feb0fd74380819f58 (patch) | |
tree | fad9f10e0ab1fef47769353b05ace41191211c00 /scripts/gdb/linux/timerlist.py | |
parent | c83529c17e12046ac4a8d8fbbc49c51255c7b4da (diff) |
hwmon: (occ) Add temp sensor value check
The occ driver supports two formats for the temp sensor value.
The OCC firmware for P8 supports only the first format, for which
no range checking or error processing is performed in the driver.
Inspecting the OCC sources for P8 reveals that OCC may send
a special value 0xFFFF to indicate that a sensor read timeout
has occurred, see
https://github.com/open-power/occ/blob/master_p8/src/occ/cmdh/cmdh_fsp_cmds.c#L395
That situation wasn't handled in the driver. This patch adds invalid
temp value check for the sensor data format 1 and handles it the same
way as it is done for the format 2, where EREMOTEIO is reported for
this case.
Signed-off-by: Alexander Soldatov <[email protected]>
Signed-off-by: Alexander Amelkin <[email protected]>
Reviewed-by: Alexander Amelkin <[email protected]>
Cc: Edward A. James <[email protected]>
Cc: Joel Stanley <[email protected]>
Reviewed-by: Eddie James <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions