i2c-mux-gpio: Fix GPIO request flag issue
Subsystems (2)
PATCH 1/2 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 <[email protected]>
--- drivers/i2c/muxes/i2c-mux-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/muxes/i2c-mux-gpio.c +1 -1
@@ -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;
Signature · 1 line
2.7.4
PATCH 1/2 i2c-mux-gpio: Fix GPIO request flag issue
Hello Ye Li,
Am 10.07.2019 um 12:23 schrieb Ye Li:
Quoted 7 lines
When requesting GPIO, the
GPIOD_IS_OUTis missed in flag, so the GPIO is set the input mode not output and cause mux not work.Signed-off-by Ye Li <[email protected]>--- drivers/i2c/muxes/i2c-mux-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-i2c master
Thanks!
bye,
Heiko
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de