Skip to content

On-Chip Controller (OCC) hwmon driver

[email protected] openbmc 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 0 repliesNew
  2. v46 patches 1 replySuperseded
  3. v3 RFC4 patches 0 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Revert "hwmon: Add Power8 OCC hwmon driver"Documentation/devicetree/bindings/i2c/i2c-ibm-occ.txt drivers/hwmon/Kconfig drivers/hwmon/Makefile +1 more+0 -12810 replies
2/5drivers: Add hwmon occ driver frameworkDocumentation/devicetree/bindings/i2c/i2c-ibm-occ.txt drivers/hwmon/Kconfig drivers/hwmon/Makefile +9 more+314 -00 replies
3/5drivers: hwmon OCC scom bus operationsdrivers/hwmon/occ/occ.c drivers/hwmon/occ/occ.h drivers/hwmon/occ/occ_i2c.c +5 more+137 -90 replies
4/5drivers: Add hwmon OCC version specific functionsdrivers/hwmon/occ/occ.c drivers/hwmon/occ/occ.h drivers/hwmon/occ/p8.c +1 more+494 -60 replies
5/5drivers: OCC hwmon driver and sysfsdrivers/hwmon/occ/occ.c+766 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH linux v5 0/5] On-Chip Controller (OCC) hwmon driver

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

This patchset provides a new 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 differentiate 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 (5):
Revert "hwmon: Add Power8 OCC hwmon driver"
drivers: Add hwmon occ driver framework
drivers: hwmon OCC scom bus operations
drivers: Add hwmon OCC version specific functions
drivers: OCC hwmon driver and sysfs

 .../devicetree/bindings/i2c/i2c-ibm-occ.txt        |    2 +-
 drivers/hwmon/Kconfig                              |   13 +-
 drivers/hwmon/Makefile                             |    2 +-
 drivers/hwmon/occ/Kconfig                          |   15 +
 drivers/hwmon/occ/Makefile                         |    1 +
 drivers/hwmon/occ/occ.c                            |  892 ++++++++++++++
 drivers/hwmon/occ/occ.h                            |   58 +
 drivers/hwmon/occ/occ_i2c.c                        |  147 +++
 drivers/hwmon/occ/p8.c                             |  222 ++++
 drivers/hwmon/occ/p8.h                             |   29 +
 drivers/hwmon/occ/p9.c                             |  253 ++++
 drivers/hwmon/occ/p9.h                             |   29 +
 drivers/hwmon/occ/scom.h                           |   31 +
 drivers/hwmon/power8_occ_i2c.c                     | 1254 --------------------
 14 files changed, 1680 insertions(+), 1268 deletions(-)
 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/p8.c
 create mode 100644 drivers/hwmon/occ/p8.h
 create mode 100644 drivers/hwmon/occ/p9.c
 create mode 100644 drivers/hwmon/occ/p9.h
 create mode 100644 drivers/hwmon/occ/scom.h
 delete mode 100644 drivers/hwmon/power8_occ_i2c.c
Signature · 1 line
1.9.1