]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit0b57436f15bf40e432487086c4f2d01fd3529393
tree165894f811976b805f367e86d88b62ad09120839
parent39129f28c9431522a6790e7b8c3283221a28447b
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: ae481cc13965 ("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