aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-10-19 12:38:23 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-12-13 22:25:55 -0600
commit87043c358b7b53693c89113b483cd702616ee994 (patch)
treead43ce679a25a1266ab23e20ca3986f97d729675
parent35ef8e112113e2e62ef57b6bbf5179622ca8398e (diff)
downloadskiboot-87043c358b7b53693c89113b483cd702616ee994.zip
skiboot-87043c358b7b53693c89113b483cd702616ee994.tar.gz
skiboot-87043c358b7b53693c89113b483cd702616ee994.tar.bz2
sensors: occ: Skip counter type of sensors
Don't add counter type of sensors to device-tree as they don't fit into hwmon sensor interface. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> (cherry picked from commit 275efcc44fdad3572e6180f625d356c8b7cca68d) Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/occ-sensor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/occ-sensor.c b/hw/occ-sensor.c
index 1042c11..3de91a0 100644
--- a/hw/occ-sensor.c
+++ b/hw/occ-sensor.c
@@ -591,6 +591,9 @@ void occ_sensors_init(void)
struct cpu_thread *c = NULL;
u32 handler;
+ if (md[i].structure_type != OCC_SENSOR_READING_FULL)
+ continue;
+
if (!(md[i].type & HWMON_SENSORS_MASK))
continue;