Skip to contentSkip to conversation

hwmon: On-Chip Controller (OCC) hwmon driver

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

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v3 cover hwmon: On-Chip Controller (OCC) hwmon driver

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

This patchset provides a new Power8 OCC hwmon driver. There are a number of issues with the existing driver. Firstly, i2c access was embedded throughout the driver. Secondly, there is no way to easily add different versions of the OCC.

This patchset addresses the first issue by abstracting the bus transfer protocol into a modular structure. In this way, any low level transfer method may be easily implemented.

The second issue is addressed by separating the "version specific" code for the OCC and the common hwmon code. This task is not yet complete, but the general structure is in place. Ultimately, different OCC versions could be probed up using the device tree.

Edward A. James (4):
Revert "hwmon: Add Power8 OCC hwmon driver"
hwmon: Add OCC hwmon driver stub
hwmon: Add OCC driver basic sysfs attributes
hwmon: Add OCC driver polling and parse response

 .../devicetree/bindings/i2c/i2c-ibm-occ.txt        |   13 -
 drivers/hwmon/Kconfig                              |   13 +-
 drivers/hwmon/Makefile                             |    2 +-
 drivers/hwmon/occ/Kconfig                          |   15 +
 drivers/hwmon/occ/Makefile                         |    1 +
 drivers/hwmon/occ/occ.c                            |  128 ++
 drivers/hwmon/occ/occ.h                            |   47 +
 drivers/hwmon/occ/occ_i2c.c                        |  151 +++
 drivers/hwmon/occ/power8_occ.c                     |  719 +++++++++++
 drivers/hwmon/occ/power8_occ.h                     |   25 +
 drivers/hwmon/power8_occ_i2c.c                     | 1254 --------------------
 11 files changed, 1088 insertions(+), 1280 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-ibm-occ.txt
 create mode 100644 drivers/hwmon/occ/Kconfig
 create mode 100644 drivers/hwmon/occ/Makefile
 create mode 100644 drivers/hwmon/occ/occ.c
 create mode 100644 drivers/hwmon/occ/occ.h
 create mode 100644 drivers/hwmon/occ/occ_i2c.c
 create mode 100644 drivers/hwmon/occ/power8_occ.c
 create mode 100644 drivers/hwmon/occ/power8_occ.h
 delete mode 100644 drivers/hwmon/power8_occ_i2c.c
Signature · 1 line
1.9.1