Re: [RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-07 Thread Jean Delvare
On Mon, 07 Jul 2014 06:32:02 -0700, Guenter Roeck wrote: > On 07/07/2014 01:27 AM, Jean Delvare wrote: > > On Sun, 6 Jul 2014 20:55:12 -0700, Guenter Roeck wrote: > >>chip->words[command] &= 0xff00; > >>chip->words[command] |= data->byte; > >>

Re: [RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-07 Thread Guenter Roeck
On 07/07/2014 01:27 AM, Jean Delvare wrote: Hi Guenter, On Sun, 6 Jul 2014 20:55:12 -0700, Guenter Roeck wrote: SMBus block commands are different to I2C block commands since the returned data is not normally accessible with byte or word commands on other command offsets. Add linked list of

Re: [RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-07 Thread Jean Delvare
Hi Guenter, On Sun, 6 Jul 2014 20:55:12 -0700, Guenter Roeck wrote: > SMBus block commands are different to I2C block commands since > the returned data is not normally accessible with byte or word > commands on other command offsets. Add linked list of 'block' > commands to support those

Re: [RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-07 Thread Jean Delvare
Hi Guenter, On Sun, 6 Jul 2014 20:55:12 -0700, Guenter Roeck wrote: SMBus block commands are different to I2C block commands since the returned data is not normally accessible with byte or word commands on other command offsets. Add linked list of 'block' commands to support those commands.

Re: [RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-07 Thread Guenter Roeck
On 07/07/2014 01:27 AM, Jean Delvare wrote: Hi Guenter, On Sun, 6 Jul 2014 20:55:12 -0700, Guenter Roeck wrote: SMBus block commands are different to I2C block commands since the returned data is not normally accessible with byte or word commands on other command offsets. Add linked list of

Re: [RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-07 Thread Jean Delvare
On Mon, 07 Jul 2014 06:32:02 -0700, Guenter Roeck wrote: On 07/07/2014 01:27 AM, Jean Delvare wrote: On Sun, 6 Jul 2014 20:55:12 -0700, Guenter Roeck wrote: chip-words[command] = 0xff00; chip-words[command] |= data-byte;

[RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-06 Thread Guenter Roeck
SMBus block commands are different to I2C block commands since the returned data is not normally accessible with byte or word commands on other command offsets. Add linked list of 'block' commands to support those commands. Access mechanism is quite simple: Block commands must be written before

[RFC PATCH] i2c: stub: Add support for SMBus block commands

2014-07-06 Thread Guenter Roeck
SMBus block commands are different to I2C block commands since the returned data is not normally accessible with byte or word commands on other command offsets. Add linked list of 'block' commands to support those commands. Access mechanism is quite simple: Block commands must be written before