mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
i2c-mux-gpio: Fix GPIO request flag issue
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>
This commit is contained in:
parent
d39221f33f
commit
42cc3125c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user