projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa6136
)
i2c: gpio: initialize SCL to HIGH again
author
Wolfram Sang
<
[email protected]
>
Sat, 16 Jun 2018 12:56:36 +0000
(21:56 +0900)
committer
Wolfram Sang
<
[email protected]
>
Fri, 29 Jun 2018 06:23:12 +0000
(08:23 +0200)
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 <
[email protected]
>
Tested-by: Geert Uytterhoeven <
[email protected]
>
Reviewed-by: Linus Walleij <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
Cc:
[email protected]
drivers/i2c/busses/i2c-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-gpio.c
b/drivers/i2c/busses/i2c-gpio.c
index 005e6e0330c278276a0d602fcfebdc3429218cfd..66f85bbf35917161cc36e4ffb308d78b8401c0cb 100644
(file)
--- a/
drivers/i2c/busses/i2c-gpio.c
+++ b/
drivers/i2c/busses/i2c-gpio.c
@@
-279,9
+279,9
@@
static int i2c_gpio_probe(struct platform_device *pdev)
* required for an I2C bus.
*/
if (pdata->scl_is_open_drain)
- gflags = GPIOD_OUT_
LOW
;
+ gflags = GPIOD_OUT_
HIGH
;
else
- gflags = GPIOD_OUT_
LOW
_OPEN_DRAIN;
+ gflags = GPIOD_OUT_
HIGH
_OPEN_DRAIN;
priv->scl = i2c_gpio_get_desc(dev, "scl", 1, gflags);
if (IS_ERR(priv->scl))
return PTR_ERR(priv->scl);