One fix in i2c-imx marks the last read as 'processed' to ensure
proper indexing of the transfers.
i2c: imx: when being a target, mark the last read as processed

When being a target, NAK from the controller means that all bytes have
been transferred. So, the last byte needs also to be marked as
'processed'. Otherwise index registers of backends may not increase.

Fixes: f7414cd6923f ("i2c: imx: support slave mode for imx I2C driver")
Signed-off-by: Corey Minyard <>
Tested-by: Andrew Manley <>
Reviewed-by: Andrew Manley <>
Reviewed-by: Oleksij Rempel <>
[wsa: fixed comment and commit message to properly describe the case]
Signed-off-by: Wolfram Sang <>
Signed-off-by: Andi Shyti <>
1 file changed