Read more than 256 bytes via i2c with iMX8X

Hi @gclaudino.tx,

After some tests, the following patch seems to fix the 256 bytes read limitation:
0001-i2c-imx-lpi2c-fix-256-bytes-read-limitation.patch (1.9 KB)

Initially, the i2c read routine was waiting the 256th byte to issue a new read command, but it is too late because the i2c block has already send a NACK if there is no read command ready in the FIFO.
The fix just issue the read command at the beginning of a read and not at the end.

I’m a bit surprised to be the only one annoyed by this problem.

Kind regards

1 Like