Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93386287 authored by John Crispin's avatar John Crispin Committed by Linus Walleij
Browse files

pinctrl/lantiq: the pinconf OD parameter argument was ignored



When setting the OpenDrain bit we should really honour the
argument passed inside the devicetree.

Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6360350c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -494,7 +494,10 @@ static int xway_pinconf_set(struct pinctrl_dev *pctldev,
			reg = GPIO3_OD;
		else
			reg = GPIO_OD(pin);
		if (arg == 0)
			gpio_setbit(info->membase[0], reg, PORT_PIN(pin));
		else
			gpio_clearbit(info->membase[0], reg, PORT_PIN(pin));
		break;

	case LTQ_PINCONF_PARAM_PULL: