Skip to content
Commit 17bb6951 authored by Vipin K Parashar's avatar Vipin K Parashar Committed by Michael Ellerman
Browse files

powerpc/powernv: Handle OPAL_WRONG_STATE in opal_get_sensor_data()



OPAL returns OPAL_WRONG_STATE upon failing to provide sensor data due to
core sleeping/offline. Add a check in opal_get_sensor_data() for sensor
read failure with OPAL_WRONG_STATE return code and return -EIO.

Signed-off-by: default avatarVipin K Parashar <vipin@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 4f9b514b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment