projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6360350
)
pinctrl/lantiq: the pinconf OD parameter argument was ignored
author
John Crispin
<blogic@openwrt.org>
Fri, 1 Feb 2013 12:04:59 +0000
(13:04 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 5 Feb 2013 15:17:23 +0000
(16:17 +0100)
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>
drivers/pinctrl/pinctrl-xway.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-xway.c
b/drivers/pinctrl/pinctrl-xway.c
index b23b8954ae31f17d4613df5b51add4d2500e2e15..53cb6a3a56edd58885985b40800e94604cb2db9c 100644
(file)
--- a/
drivers/pinctrl/pinctrl-xway.c
+++ b/
drivers/pinctrl/pinctrl-xway.c
@@
-494,7
+494,10
@@
static int xway_pinconf_set(struct pinctrl_dev *pctldev,
reg = GPIO3_OD;
else
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;
case LTQ_PINCONF_PARAM_PULL: