Re: [PATCH v6 00/10] hwmon and fsi: Add On-Chip Controller Driver

2018-11-12 Thread Eddie James
On 11/09/2018 05:03 PM, Guenter Roeck wrote: On Thu, Nov 08, 2018 at 03:05:19PM -0600, Eddie James wrote: From: Eddie James This series adds a hwmon driver to support the OCC on POWER8 and POWER9 processors. The OCC is an embedded processor that provides realtime power and thermal

[PATCH v6 05/10] hwmon: Add On-Chip Controller (OCC) hwmon driver

2018-11-08 Thread Eddie James
From: Eddie James The OCC is a device embedded on a POWER processor that collects and aggregates sensor data from the processor and system. The OCC can provide the raw sensor data as well as perform thermal and power management on the system. This driver provides a hwmon interface to the OCC

[PATCH v6 04/10] dt-bindings: i2c: Add P8 OCC hwmon device documentation

2018-11-08 Thread Eddie James
From: Eddie James Document the bindings for I2C-based OCC hwmon device. Signed-off-by: Eddie James Acked-by: Rob Herring --- .../devicetree/bindings/i2c/ibm,p8-occ-hwmon.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v6 06/10] hwmon (occ): Add command transport method for P8 and P9

2018-11-08 Thread Eddie James
From: Eddie James For the P8 OCC, add the procedure to send a command to the OCC over I2C bus. This involves writing the OCC command registers with serial communication operations (SCOMs) interpreted by the I2C slave. For the P9 OCC, add a procedure to use the OCC in-kernel API to send a command

[PATCH v6 02/10] fsi: Add On-Chip Controller (OCC) driver

2018-11-08 Thread Eddie James
From: Eddie James The OCC is a device embedded on a POWER processor that collects and aggregates sensor data from the processor and system. The OCC can provide the raw sensor data as well as perform thermal and power management on the system. This driver provides an atomic communications

[PATCH v6 03/10] Documentation: hwmon: Add OCC documentation

2018-11-08 Thread Eddie James
From: Eddie James Document the hwmon interface for the OCC. Signed-off-by: Eddie James --- Documentation/hwmon/occ | 112 1 file changed, 112 insertions(+) create mode 100644 Documentation/hwmon/occ diff --git a/Documentation/hwmon/occ b

[PATCH v6 08/10] hwmon (occ): Add sensor types and versions

2018-11-08 Thread Eddie James
From: Eddie James Add structures to define all sensor types and versions. Add sysfs show and store functions for each sensor type. Add a method to construct the "set user power cap" command and send it to the OCC. Add rate limit to polling the OCC (in case user-space reads our hwm

[PATCH v6 00/10] hwmon and fsi: Add On-Chip Controller Driver

2018-11-08 Thread Eddie James
From: Eddie James This series adds a hwmon driver to support the OCC on POWER8 and POWER9 processors. The OCC is an embedded processor that provides realtime power and thermal monitoring and management. The series also adds a "bus" driver to handle atomic communication between t

[PATCH v6 01/10] dt-bindings: fsi: Add P9 OCC device documentation

2018-11-08 Thread Eddie James
From: Eddie James Document the bindings for the FSI-attached POWER9 On-Chip Controller. Signed-off-by: Eddie James --- Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9

[PATCH v6 07/10] hwmon (occ): Parse OCC poll response

2018-11-08 Thread Eddie James
From: Eddie James Add method to parse the response from the OCC poll command. This only needs to be done during probe(), since the OCC shouldn't change the number or format of sensors while it's running. The parsed response allows quick access to sensor data, as well as information on

[PATCH v6 09/10] hwmon (occ): Add sensor attributes and register hwmon device

2018-11-08 Thread Eddie James
From: Eddie James Setup the sensor attributes for every OCC sensor found by the first poll response. Register the attributes with hwmon. Signed-off-by: Eddie James --- drivers/hwmon/occ/common.c | 337 + drivers/hwmon/occ/common.h | 16 +++ 2 files

[PATCH v6 10/10] hwmon (occ): Add sysfs attributes for additional OCC data

2018-11-08 Thread Eddie James
From: Eddie James The OCC provides a variety of additional information about the state of the host processor, such as throttling, error conditions, and the number of OCCs detected in the system. This information is essential to service processor applications such as fan control and host

[PATCH v3 00/12] hwmon: Add On-Chip Controller hwmon driver

2017-11-20 Thread Eddie James
From: "Edward A. James" This series adds a hwmon driver to support the OCC on POWER8 and POWER9 processors. The OCC is an embedded processor that provides realtime power and thermal monitoring and management. This driver has two different platform drivers as a "base" for the hwmon interface, as

[PATCH v3 03/12] dt-bindings: i2c: Add P8 OCC hwmon device documentation

2017-11-20 Thread Eddie James
From: "Edward A. James" Document the bindings for I2C-based OCC hwmon device. Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,p8-occ-hwmon.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,p8-occ

[PATCH v3 06/12] hwmon (occ): Add command transport method for P8 and P9

2017-11-20 Thread Eddie James
From: "Edward A. James" For the P8 OCC, add the procedure to send a command to the OCC over I2C bus. This involves writing the OCC command registers with serial communication operations (SCOMs) interpreted by the I2C slave. For the P9 OCC, add a procedure to use the OCC in-kernel API to send a co

[PATCH v3 02/12] Documentation: ABI: Add occ-hwmon driver sysfs documentation

2017-11-20 Thread Eddie James
From: "Edward A. James" Detail the sysfs attributes provided by the occ-hwmon driver. Signed-off-by: Edward A. James --- Documentation/ABI/testing/sysfs-driver-occ-hwmon | 85 1 file changed, 85 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-o

[PATCH v3 07/12] hwmon (occ): Parse OCC poll response

2017-11-20 Thread Eddie James
From: "Edward A. James" Add method to parse the response from the OCC poll command. This only needs to be done during probe(), since the OCC shouldn't change the number or format of sensors while it's running. The parsed response allows quick access to sensor data, as well as information on the n

[PATCH v3 09/12] hwmon (occ): Add sensor attributes and register hwmon device

2017-11-20 Thread Eddie James
From: "Edward A. James" Setup the sensor attributes for every OCC sensor found by the first poll response. Register the attributes with hwmon. Add hwmon documentation for the driver. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 450 +++

[PATCH v3 10/12] hwmon (occ): Add non-hwmon attributes

2017-11-20 Thread Eddie James
From: "Edward A. James" Create device attributes for additional OCC properties that do not belong as hwmon sensors. These provide additional information as to the state of the processor and system. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 93 +

[PATCH v3 11/12] hwmon (occ): Add error handling

2017-11-20 Thread Eddie James
From: "Edward A. James" Add logic to detect a number of error scenarios on the OCC. Export any errors through an additional non-hwmon device attribute. The error counting and state verification are required by the OCC hardware specification. Signed-off-by: Edward A. James --- drivers/hwmon/occ

[PATCH v3 08/12] hwmon (occ): Add sensor types and versions

2017-11-20 Thread Eddie James
From: "Edward A. James" Add structures to define all sensor types and versions. Add sysfs show and store functions for each sensor type. Add a method to construct the "set user power cap" command and send it to the OCC. Add rate limit to polling the OCC (in case user-space reads our hwmon entries

[PATCH v3 12/12] hwmon (occ): Add sysfs notification for errors and throttling

2017-11-20 Thread Eddie James
From: "Edward A. James" In order to aid application usage of the error, throttling, and presence count properties, use sysfs_notify to notify users of change on these attributes. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 53 --

[PATCH v3 01/12] Documentation: hwmon: Add OCC documentation

2017-11-20 Thread Eddie James
tion/hwmon/occ b/Documentation/hwmon/occ new file mode 100644 index 000..c88d0f5 --- /dev/null +++ b/Documentation/hwmon/occ @@ -0,0 +1,75 @@ +Kernel driver occ-hwmon +=== + +Supported chips: + * POWER8 + * POWER9 + +Author: Eddie James + +Description +--- + +T

[PATCH v3 05/12] hwmon: Add On-Chip Controller (OCC) hwmon driver

2017-11-20 Thread Eddie James
class = I2C_CLASS_HWMON, + .driver = { + .name = "occ-hwmon", + .of_match_table = p8_i2c_occ_of_match, + }, + .probe = p8_i2c_occ_probe, +}; + +module_i2c_driver(p8_i2c_occ_driver); + +MODULE_AUTHOR("Eddie James "); +MODULE_DESCRIPTION("BMC

[PATCH v3 04/12] dt-bindings: fsi: Add P9 OCC hwmon device documentation

2017-11-20 Thread Eddie James
From: "Edward A. James" Document the bindings for the FSI-based OCC hwmon device. Signed-off-by: Edward A. James --- .../devicetree/bindings/fsi/ibm,p9-occ-hwmon.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9

Re: [PATCH v2 1/3] dt-bindings: i2c: Document the POWER system power supply device

2017-08-21 Thread Eddie James
On 08/17/2017 10:11 AM, Rob Herring wrote: On Thu, Aug 10, 2017 at 05:19:44PM -0500, Eddie James wrote: From: "Edward A. James" Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,power-ps.txt| 21 + 1 file changed, 21 insertions(+

Re: [PATCH v3 3/3] Documentation: hwmon: Document the IBM CFF power supply

2017-08-15 Thread Eddie James
On 08/14/2017 05:37 PM, Guenter Roeck wrote: On Mon, Aug 14, 2017 at 02:26:20PM -0500, Eddie James wrote: On 08/14/2017 01:53 PM, Guenter Roeck wrote: On Mon, Aug 14, 2017 at 10:26:30AM -0500, Eddie James wrote: From: "Edward A. James" Signed-off-by: Edward A. James --- Doc

Re: [PATCH v3 3/3] Documentation: hwmon: Document the IBM CFF power supply

2017-08-14 Thread Eddie James
On 08/14/2017 01:53 PM, Guenter Roeck wrote: On Mon, Aug 14, 2017 at 10:26:30AM -0500, Eddie James wrote: From: "Edward A. James" Signed-off-by: Edward A. James --- Documentation/hwmon/ibm-cffps | 54 +++ 1 file changed, 54 insertions(+

[PATCH v3 1/3] dt-bindings: i2c: Document the IBM CCF power supply version 1

2017-08-14 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,cffps1.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,cffps1.txt diff --git a/Documentation/devicetree/bindings/i2

[PATCH v3 0/3] hwmon: (pmbus): Add IBM Common Form Factor (CFF) power supply driver

2017-08-14 Thread Eddie James
From: "Edward A. James" This series adds a hwmon pmbus driver for a POWER System power supply. The core monitoring functionality is provided by pmbus. Changes since v2: * Renamed the driver again... * Remove debugfs bool from pmbus_driver_info. * Add comment for returning rc when reading STAT

[PATCH v3 3/3] Documentation: hwmon: Document the IBM CFF power supply

2017-08-14 Thread Eddie James
/hwmon/ibm-cffps new file mode 100644 index 000..e091ff2 --- /dev/null +++ b/Documentation/hwmon/ibm-cffps @@ -0,0 +1,54 @@ +Kernel driver ibm-cffps +=== + +Supported chips: + * IBM Common Form Factor power supply + +Author: Eddie James + +Description +--- + +T

[PATCH v3 2/3] hwmon: (pmbus): Add IBM Common Form Factor (CFF) power supply driver

2017-08-14 Thread Eddie James
_cffps_of_match, + }, + .probe = ibm_cffps_probe, + .remove = pmbus_do_remove, + .id_table = ibm_cffps_id, +}; + +module_i2c_driver(ibm_cffps_driver); + +MODULE_AUTHOR("Eddie James"); +MODULE_DESCRIPTION("PMBus driver for IBM Common Form Factor power supplies"); +M

Re: [PATCH v2 2/3] hwmon: (pmbus): Add POWER system power supply driver

2017-08-11 Thread Eddie James
On 08/10/2017 08:18 PM, Guenter Roeck wrote: On Thu, Aug 10, 2017 at 05:19:45PM -0500, Eddie James wrote: From: "Edward A. James" Add the driver to monitor POWER system power supplies with hwmon over pmbus. Signed-off-by: Edward A. James --- drivers/hwmon/pmbus/Kconf

[PATCH v2 2/3] hwmon: (pmbus): Add POWER system power supply driver

2017-08-10 Thread Eddie James
probe = powerps_probe, + .remove = pmbus_do_remove, + .id_table = powerps_id, +}; + +module_i2c_driver(powerps_driver); + +MODULE_AUTHOR("Eddie James"); +MODULE_DESCRIPTION("PMBus driver for POWER system power supplies"); +MODULE_LICENSE("GPL"); -- 1.8.3.1 -- To unsu

[PATCH v2 1/3] dt-bindings: i2c: Document the POWER system power supply device

2017-08-10 Thread Eddie James
From: "Edward A. James" Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,power-ps.txt| 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,power-ps.txt diff --git a/Documentation/devicetree/bindings/

[PATCH v2 3/3] Documentation: hwmon: Add POWER system power supply documentation

2017-08-10 Thread Eddie James
on/powerps new file mode 100644 index 000..a4fbe92 --- /dev/null +++ b/Documentation/hwmon/powerps @@ -0,0 +1,54 @@ +Kernel driver powerps += + +Supported chips: + * POWER system power supply + +Author: Eddie James + +Description +--- + +This driver supports POWER sy

[PATCH v2 0/3] hwmon: (pmbus): Add POWER System power supply driver

2017-08-10 Thread Eddie James
From: "Edward A. James" This series adds a hwmon pmbus driver for a POWER System power supply. The core monitoring functionality is provided by pmbus. This series depends on the pmbus core extensions for debugfs recently submitted to the mailing list (latest: https://lkml.org/lkml/2017/8/10/881)

[PATCH v2 00/10] drivers/hwmon: Add On-Chip Controller (OCC) hwmon driver

2017-07-27 Thread Eddie James
From: "Edward A. James" This series adds a hwmon driver to support the OCC on POWER8 and POWER9 processors. The OCC is an embedded processor that provides realtime power and thermal monitoring and management. This driver has two different platform drivers as a "base" for the hwmon interface, as

[PATCH v2 02/10] drivers/hwmon/occ: Add command transport method for P8 and P9

2017-07-27 Thread Eddie James
From: "Edward A. James" For the P8 OCC, add the procedure to send a command to the OCC over I2C bus. This involves writing the OCC command registers with serial communication operations (SCOMs) interpreted by the I2C slave. For the P9 OCC, add a procedure to use the OCC in-kernel API to send a co

[PATCH v2 06/10] drivers/hwmon/occ: Add non-hwmon attributes

2017-07-27 Thread Eddie James
From: "Edward A. James" Create device attributes for additional OCC properties that do not belong as hwmon sensors. These provide additional information as to the state of the processor and system. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 83 +

[PATCH v2 01/10] drivers/hwmon: Add On-Chip Controller (OCC) hwmon driver

2017-07-27 Thread Eddie James
class = I2C_CLASS_HWMON, + .driver = { + .name = "occ-hwmon", + .of_match_table = p8_i2c_occ_of_match, + }, + .probe = p8_i2c_occ_probe, +}; + +module_i2c_driver(p8_i2c_occ_driver); + +MODULE_AUTHOR("Eddie James "); +MODULE_DESCRIPTION("BMC

[PATCH v2 05/10] drivers/hwmon/occ: Add sensor attributes and register hwmon device

2017-07-27 Thread Eddie James
From: "Edward A. James" Setup the sensor attributes for every OCC sensor found by the first poll response. Register the attributes with hwmon. Add hwmon documentation for the driver. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 432 +++

[PATCH v2 08/10] Documentation: hwmon: Add OCC documentation

2017-07-27 Thread Eddie James
tion/hwmon/occ b/Documentation/hwmon/occ new file mode 100644 index 000..dcae911 --- /dev/null +++ b/Documentation/hwmon/occ @@ -0,0 +1,74 @@ +Kernel driver occ-hwmon +=== + +Supported chips: + * POWER8 + * POWER9 + +Author: Eddie James + +Description +--- + +T

[PATCH v2 09/10] Documentation: ABI: Add occ-hwmon driver sysfs documentation

2017-07-27 Thread Eddie James
From: "Edward A. James" Detail the sysfs attributes provided by the occ-hwmon driver. Signed-off-by: Edward A. James --- Documentation/ABI/testing/sysfs-driver-occ-hwmon | 77 1 file changed, 77 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-o

[PATCH v2 07/10] drivers/hwmon/occ: Add error handling

2017-07-27 Thread Eddie James
From: "Edward A. James" Add logic to detect a number of error scenarios on the OCC. Export any errors through an additional non-hwmon device attribute. The error counting and state verification are required by the OCC hardware specification. Signed-off-by: Edward A. James --- drivers/hwmon/occ

[PATCH v2 10/10] dt-bindings: i2c: Add P8 OCC hwmon driver documentation

2017-07-27 Thread Eddie James
From: "Edward A. James" Document the bindings for I2C-based OCC hwmon driver. Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,p8-occ-hwmon.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,p8-occ

[PATCH v2 03/10] drivers/hwmon/occ: Parse OCC poll response

2017-07-27 Thread Eddie James
From: "Edward A. James" Add method to parse the response from the OCC poll command. This only needs to be done during probe(), since the OCC shouldn't change the number or format of sensors while it's running. The parsed response allows quick access to sensor data, as well as information on the n

[PATCH v2 04/10] drivers/hwmon/occ: Add sensor types and versions

2017-07-27 Thread Eddie James
From: "Edward A. James" Add structures to define all sensor types and versions. Add sysfs show and store functions for each sensor type. Add a method to construct the "set user power cap" command and send it to the OCC. Add rate limit to polling the OCC (in case user-space reads our hwmon entries

Re: [PATCH linux v9 2/5] hwmon: occ: Add sysfs interface

2017-04-28 Thread Eddie James
On 04/02/2017 06:19 AM, Guenter Roeck wrote: On 03/14/2017 01:55 PM, Eddie James wrote: From: "Edward A. James" Add a generic mechanism to expose the sensors provided by the OCC in sysfs. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation

[PATCH linux v9 0/5] drivers: hwmon: Add On-Chip Controller driver

2017-03-14 Thread Eddie James
From: "Edward A. James" This patchset adds a hwmon driver to support the OCC (On-Chip Controller) on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management Controller). The OCC is an embedded processor that provides real time power and thermal monitoring. The driver provides an i

[PATCH linux v9 1/5] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-03-14 Thread Eddie James
that the driver does not run on these processors. Instead, the +driver runs on a connected service processor, such as an AST2400. (see the +BMC - Host Communications section). + +Author: Eddie James + +Description +--- + +This driver implements support for the OCC (On-Chip Controller) on the

[PATCH linux v9 2/5] hwmon: occ: Add sysfs interface

2017-03-14 Thread Eddie James
&hwmon->occ_info, + NULL); + if (IS_ERR(hwmon->dev)) { + dev_err(dev, "cannot register hwmon device %s: %ld\n", + hwmon->hwmon_name, PTR_ERR(

[PATCH linux v9 5/5] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-03-14 Thread Eddie James
= OCC_P8_I2C_NAME, + .of_match_table = occ_of_match, + }, + .probe = p8_occ_probe, + .id_table = occ_ids, +}; + +module_i2c_driver(p8_occ_driver); + +MODULE_AUTHOR("Eddie James "); +MODULE_DESCRIPTION("BMC P8 OCC hwmon driver"); +MODULE_LICENSE("

[PATCH linux v9 4/5] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-03-14 Thread Eddie James
ct occ_init_data p8_init = { + .command_addr = 0x6000, + .response_addr = 0x7000, + .ops = &p8_ops, +}; + +const u32 *p8_get_sensor_hwmon_configs() +{ + return p8_sensor_hwmon_configs; +} + +struct occ *p8_occ_init(struct device *dev, void *bus, + c

[PATCH linux v9 3/5] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-03-14 Thread Eddie James
(client, (const char *)buf, sizeof(u32) * 3); + if (rc < 0) + return rc; + else if (rc != sizeof(u32) * 3) + return -EIO; + + return 0; +} + +MODULE_AUTHOR("Eddie James "); +MODULE_DESCRIPTION("I2C OCC SCOM transport"); +MODULE_LICENSE("

[PATCH linux v8 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-02-14 Thread Eddie James
that the driver does not run on these processors. Instead, the +driver runs on a connected service processor, such as an AST2400. (see the +BMC - Host Communications section). + +Author: Eddie James + +Description +--- + +This driver implements support for the OCC (On-Chip Controller) on the

[PATCH linux v8 3/6] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-02-14 Thread Eddie James
(client, (const char *)buf, sizeof(u32) * 3); + if (rc < 0) + return rc; + else if (rc != sizeof(u32) * 3) + return -EIO; + + return 0; +} + +MODULE_AUTHOR("Eddie James "); +MODULE_DESCRIPTION("I2C OCC SCOM transport"); +MODULE_LICENSE("

[PATCH linux v8 5/6] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-02-14 Thread Eddie James
= OCC_P8_I2C_NAME, + .of_match_table = occ_of_match, + }, + .probe = p8_occ_probe, + .id_table = occ_ids, +}; + +module_i2c_driver(p8_occ_driver); + +MODULE_AUTHOR("Eddie James "); +MODULE_DESCRIPTION("BMC P8 OCC hwmon driver"); +MODULE_LICENSE("

[PATCH linux v8 6/6] hwmon: occ: Add callbacks for parsing P9 OCC datastructures

2017-02-14 Thread Eddie James
= { + .parse_sensor = p9_parse_sensor, + .alloc_sensor = p9_alloc_sensor, + .get_sensor = p9_get_sensor, +}; + +static const struct occ_init_data p9_init = { + .command_addr = 0xFFFBE000, + .response_addr = 0xFFFBF000, + .ops = &p9_ops, +}; + +const u32 *p9_get_sen

[PATCH linux v8 4/6] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-02-14 Thread Eddie James
ct occ_init_data p8_init = { + .command_addr = 0x6000, + .response_addr = 0x7000, + .ops = &p8_ops, +}; + +const u32 *p8_get_sensor_hwmon_configs() +{ + return p8_sensor_hwmon_configs; +} + +struct occ *p8_occ_init(struct device *dev, void *bus, + c

[PATCH linux v8 2/6] hwmon: occ: Add sysfs interface

2017-02-14 Thread Eddie James
NULL); + if (IS_ERR(hwmon->dev)) { + dev_err(dev, "cannot register hwmon device %s: %ld\n", + hwmon->hwmon_name, PTR_ERR(hwmon->dev)); + return ERR_CAST(hwmon->dev); + } + + return hwmon;

[PATCH linux v8 0/6] drivers: hwmon: Add On-Chip Controller driver

2017-02-14 Thread Eddie James
From: "Edward A. James" This patchset adds a hwmon driver to support the OCC (On-Chip Controller) on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management Controller). The OCC is an embedded processor that provides real time power and thermal monitoring. The driver provides an i

Re: [PATCH linux v7 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-02-14 Thread Eddie James
+M: Eddie James +L: linux-hw...@vger.kernel.org Have you subscribed to this list? Would you prefer the mail to come to the openbmc list? +S: Maintained +F: Documentation/hwmon/occ +F: drivers/hwmon/occ/ + ONENAND FLASH DRIVER M: Kyungmin Park L:

Re: [PATCH linux v7 3/6] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-02-10 Thread Eddie James
On 02/09/2017 11:31 PM, Joel Stanley wrote: On Wed, Feb 8, 2017 at 9:40 AM, wrote: From: "Edward A. James" Add functions to send SCOM operations over I2C bus. The BMC can communicate with the Power8 host processor over I2C, but needs to use SCOM operations in order to access the OCC register

Re: [PATCH linux v7 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-02-10 Thread Eddie James
+M: Eddie James +L: linux-hw...@vger.kernel.org Have you subscribed to this list? Would you prefer the mail to come to the openbmc list? +S: Maintained +F: Documentation/hwmon/occ +F: drivers/hwmon/occ/ + ONENAND FLASH DRIVER M: Kyungmin Park L: