Re: [PATCH] i2c: designware: Get right data length

2021-02-25 Thread 乱石
Hi, 在 2021/2/25 19:19, Andy Shevchenko 写道: On Thu, Feb 25, 2021 at 10:35:28AM +0800, Liguang Zhang wrote: IC_DATA_CMD[11] indicates the first data byte received after the address phase for receive transfer in Master receiver or Slave receiver mode, this bit was set in some transfer flow. IC_DATA

Re: [PATCH] i2c: designware: Get right data length

2021-02-25 Thread Andy Shevchenko
On Thu, Feb 25, 2021 at 10:35:28AM +0800, Liguang Zhang wrote: > IC_DATA_CMD[11] indicates the first data byte received after the address > phase for receive transfer in Master receiver or Slave receiver mode, > this bit was set in some transfer flow. IC_DATA_CMD[7:0] contains the > data to be tran

[PATCH] i2c: designware: Get right data length

2021-02-24 Thread Liguang Zhang
IC_DATA_CMD[11] indicates the first data byte received after the address phase for receive transfer in Master receiver or Slave receiver mode, this bit was set in some transfer flow. IC_DATA_CMD[7:0] contains the data to be transmitted or received on the I2C bus, so we should use the lower 8 bits t