Skip to contentSkip to conversation

i2c-mux-gpio: Fix GPIO request flag issue

PATCH New Ye Li 2 participants 2 messages Jul 10, 2019 – Aug 27, 2019

Subsystems (2)
lore
Share & tools
lore

Ye Li

author
#0 lore raw

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.

---
 drivers/i2c/muxes/i2c-mux-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/muxes/i2c-mux-gpio.c +1 -1
index 28f6400..e8b124f 100644
@@ -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
#1 lore raw

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_OUT is missed in flag, so the GPIO is set the input mode not output and cause mux not work.

---
  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