]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rcar: check bus state before reinitializing
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 13 Nov 2018 11:15:42 +0000 (12:15 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 27 Nov 2018 13:00:36 +0000 (14:00 +0100)
commite40358834b0283d73c01fcf9805865fca542491e
tree165894f811976b805f367e86d88b62ad09120839
parent17f601efaa32528b84a6dd72fb900f0cf98c9d4e
i2c: rcar: check bus state before reinitializing

We should check the bus state before reinitializing the IP core.
Otherwise, the internal bus busy state which also tracks multi-master
activity is lost.

Credits go to the Renesas BSP team for suggesting this change.

Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Fixes: 11061df052a7 ("i2c: rcar: fix resume by always initializing registers before transfer")
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c