i2c: ensure SDA is released in recovery if SDA is controllable
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 9 Jan 2018 13:58:57 +0000 (14:58 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Jan 2018 23:04:30 +0000 (00:04 +0100)
commit72b08fcc15dc6a2d211880e4dc7cf5314e9ab750
treef37c366272e599b0bbde4e5dac0625335802ad47
parent8092178ffe67dbd1f987e2e308e871c774774a16
i2c: ensure SDA is released in recovery if SDA is controllable

If we have a function to control SDA, we should ensure that SDA is not
held down by us. So, release the GPIO in this case.

Tested-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c