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

2017-01-21 Thread Benjamin Herrenschmidt
On Sat, 2017-01-21 at 10:11 -0800, Guenter Roeck wrote: > > +int occ_i2c_getscom(void *bus, u32 address, u64 *data) > > +{ > > + ssize_t rc; > > + u64 buf; > > + struct i2c_client *client = bus; > > + > > + rc = i2c_master_send(client, (const char *)&address, > > sizeof(u32)); > > +

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

2017-01-21 Thread Guenter Roeck
On 01/16/2017 01:13 PM, eajames@gmail.com 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 space. Signed-off-by: Edward A.

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

2017-01-16 Thread eajames . ibm
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 space. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- drivers/hwm