projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d39221f
)
i2c-mux-gpio: Fix GPIO request flag issue
author
Ye Li
<ye.li@nxp.com>
Wed, 10 Jul 2019 10:23:09 +0000
(10:23 +0000)
committer
Heiko Schocher
<hs@denx.de>
Tue, 27 Aug 2019 04:19:50 +0000
(06:19 +0200)
When requesting GPIO, the GPIOD_IS_OUT is missed in flag, so the GPIO
is set the input mode not output and cause mux not work.
Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/i2c/muxes/i2c-mux-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/muxes/i2c-mux-gpio.c
b/drivers/i2c/muxes/i2c-mux-gpio.c
index 28f640042f3fabd49a04e3e725288f79b0a9be5d..e8b124f4f5fc972d8a4898238a2014ebe89d7ba6 100644
(file)
--- a/
drivers/i2c/muxes/i2c-mux-gpio.c
+++ b/
drivers/i2c/muxes/i2c-mux-gpio.c
@@
-106,7
+106,7
@@
static int i2c_mux_gpio_probe(struct udevice *dev)
}
ret = gpio_request_list_by_name(dev, "mux-gpios", gpios, mux->n_gpios,
- GPIOD_IS_OUT_ACTIVE);
+ GPIOD_IS_OUT
| GPIOD_IS_OUT
_ACTIVE);
if (ret <= 0) {
dev_err(dev, "Failed to request mux-gpios\n");
return ret;