]> 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)
commit469024dbbd35cf39ef06fed6eed90e39c3053b26
tree165894f811976b805f367e86d88b62ad09120839
parent6dcb849686bd69c97dc549ab49fe45e34852bed5
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: 707abaa62908 ("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