Re: [PATCH v4] i2c: rk3x: fix bug that cause transfer fails in master receive mode

2014-09-02 Thread Wolfram Sang
On Sat, Aug 23, 2014 at 02:00:52AM +0800, Addy Ke wrote: > In rk3x SOC, the I2C controller can receive/transmit up to 32 bytes data > in one chunk, so the size of data to be write/read to/from TXDATAx/RXDATAx > must be less than or equal 32 bytes at a time. > > Tested on rk3288-pinky board, elan r

Re: [PATCH v4] i2c: rk3x: fix bug that cause transfer fails in master receive mode

2014-08-22 Thread Doug Anderson
Addy, On Fri, Aug 22, 2014 at 11:47 AM, addy ke wrote: >> Addy, >> >> On Fri, Aug 22, 2014 at 11:00 AM, Addy Ke wrote: >>> In rk3x SOC, the I2C controller can receive/transmit up to 32 bytes data >>> in one chunk, so the size of data to be write/read to/from TXDATAx/RXDATAx >>> must be less than

Re: [PATCH v4] i2c: rk3x: fix bug that cause transfer fails in master receive mode

2014-08-22 Thread addy ke
> Addy, > > On Fri, Aug 22, 2014 at 11:00 AM, Addy Ke wrote: >> In rk3x SOC, the I2C controller can receive/transmit up to 32 bytes data >> in one chunk, so the size of data to be write/read to/from TXDATAx/RXDATAx >> must be less than or equal 32 bytes at a time. >> >> Tested on rk3288-pinky boa

Re: [PATCH v4] i2c: rk3x: fix bug that cause transfer fails in master receive mode

2014-08-22 Thread Doug Anderson
Addy, On Fri, Aug 22, 2014 at 11:00 AM, Addy Ke wrote: > In rk3x SOC, the I2C controller can receive/transmit up to 32 bytes data > in one chunk, so the size of data to be write/read to/from TXDATAx/RXDATAx > must be less than or equal 32 bytes at a time. > > Tested on rk3288-pinky board, elan re

[PATCH v4] i2c: rk3x: fix bug that cause transfer fails in master receive mode

2014-08-22 Thread Addy Ke
In rk3x SOC, the I2C controller can receive/transmit up to 32 bytes data in one chunk, so the size of data to be write/read to/from TXDATAx/RXDATAx must be less than or equal 32 bytes at a time. Tested on rk3288-pinky board, elan receive 158 bytes data. Suggested-by: Dmitry Torokhov Signed-off-b