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: John Crispin <blogic@openwrt.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
6360350cbc
commit
9338628737
@ -494,7 +494,10 @@ static int xway_pinconf_set(struct pinctrl_dev *pctldev,
|
|||||||
reg = GPIO3_OD;
|
reg = GPIO3_OD;
|
||||||
else
|
else
|
||||||
reg = GPIO_OD(pin);
|
reg = GPIO_OD(pin);
|
||||||
gpio_setbit(info->membase[0], reg, PORT_PIN(pin));
|
if (arg == 0)
|
||||||
|
gpio_setbit(info->membase[0], reg, PORT_PIN(pin));
|
||||||
|
else
|
||||||
|
gpio_clearbit(info->membase[0], reg, PORT_PIN(pin));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LTQ_PINCONF_PARAM_PULL:
|
case LTQ_PINCONF_PARAM_PULL:
|
||||||
|
Reference in New Issue
Block a user