i2c: rcar: implement bus recovery
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 9 Jan 2018 13:58:59 +0000 (14:58 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Jan 2018 23:04:48 +0000 (00:04 +0100)
commit7d2c17f021c656a9429df05e27a359041c1bada8
tree3697b37ca9cb4702741d78aa7f10e556245966ba
parent2806e6ad77c71dd2538cb698aad476e8cf3af004
i2c: rcar: implement bus recovery

We can force levels of SCL and SDA, so we can use that for bus recovery.
Note that we cannot read SDA back, because we will only get the internal
state of the bus free detection.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c