Skip to contentSkip to conversation

hwmon: Add OCC driver polling and parse response

RFC Superseded [email protected] 1 participant 1 message Oct 12, 2016 Hardware monitoring

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

RFC v3 4/4 hwmon: Add OCC driver polling and parse response

From: "Edward A. James" <[email protected]>

Add code to poll the OCC and parse the response. Add all the necessary structures for the P8 OCC.

---
 drivers/hwmon/occ/occ_i2c.c    |   1 +
 drivers/hwmon/occ/power8_occ.c | 497 ++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 492 insertions(+), 6 deletions(-)
drivers/hwmon/occ/occ_i2c.c +1 -0
index 40ed75d..deb8dc6 100644
@@ -59,6 +59,7 @@ int occ_getscom(void *bus, u32 address, u8 *data, size_t offset)
 	if (rc != sizeof(u64))
 		return -I2C_READ_ERROR;
 
+	/* TODO: is OCC be or le? */
 	*((u64 *)data) = le64_to_cpu(buf);
 
 	return 0;
drivers/hwmon/occ/power8_occ.c +491 -6

541 lines not on this page · raw message

Signature · 1 line
1.9.1