]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rcar: in slave mode, clear NACK earlier
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 17 Aug 2020 12:19:30 +0000 (14:19 +0200)
committerWolfram Sang <wsa@kernel.org>
Tue, 25 Aug 2020 07:42:51 +0000 (09:42 +0200)
commit34b2305eebf65d06520f1be7fc1f6a714e028a30
treec4b4a5903a112f89dd496f7326a260c46ea3a365
parentbfb954d98a65229e42e53483f4171293a9fddf57
i2c: rcar: in slave mode, clear NACK earlier

Currently, a NACK in slave mode is set/cleared when SCL is held low by
the IP core right before the bit is about to be pushed out. This is too
late for clearing and then a NACK from the previous byte is still used
for the current one. Now, let's clear the NACK right after we detected
the STOP condition following the NACK.

Fixes: 2a78c5c3c26f ("i2c: rcar: add slave support")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-rcar.c