OSDN Git Service

i2c: gpio: initialize SCL to HIGH again
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 16 Jun 2018 12:56:36 +0000 (21:56 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 29 Jun 2018 06:23:12 +0000 (08:23 +0200)
commit12b731dd46d9ee646318e6e9dc587314a3908a46
treed3c4e9740a34ad3cd0a3a22b43eec360d5ca23c5
parent9aa613674f89d01248ae2e4afe691b515ff8fbb6
i2c: gpio: initialize SCL to HIGH again

It seems that during the conversion from gpio* to gpiod*, the initial
state of SCL was wrongly switched to LOW. Fix it to be HIGH again.

Fixes: 7bb75029ef34 ("i2c: gpio: Enforce open drain through gpiolib")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-gpio.c