Skip to content
Commit aade8594 authored by Corey Minyard's avatar Corey Minyard Committed by Greg Kroah-Hartman
Browse files

i2c: imx: when being a target, mark the last read as processed

[ Upstream commit 87aec499 ]

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: f7414cd6

 ("i2c: imx: support slave mode for imx I2C driver")
Signed-off-by: default avatarCorey Minyard <minyard@acm.org>
Tested-by: default avatarAndrew Manley <andrew.manley@sealingtech.com>
Reviewed-by: default avatarAndrew Manley <andrew.manley@sealingtech.com>
Reviewed-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
[wsa: fixed comment and commit message to properly describe the case]
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cb21407f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment