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:
c58bdc3
)
pinctrl/lantiq: fix pin number in ltq_pmx_gpio_request_enable
author
John Crispin
<blogic@openwrt.org>
Fri, 1 Feb 2013 12:05:05 +0000
(13:05 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 5 Feb 2013 15:17:26 +0000
(16:17 +0100)
The mapping logic inside ltq_pmx_gpio_request_enable() was
broken. This only effected Falcon SoC.
Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-lantiq.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-lantiq.c
b/drivers/pinctrl/pinctrl-lantiq.c
index 7d110722dfd1ee01514649c71d7e904fedce833b..a70384611351411a8396aa23288649aa044c283b 100644
(file)
--- a/
drivers/pinctrl/pinctrl-lantiq.c
+++ b/
drivers/pinctrl/pinctrl-lantiq.c
@@
-294,7
+294,7
@@
static int ltq_pmx_gpio_request_enable(struct pinctrl_dev *pctrldev,
unsigned pin)
{
struct ltq_pinmux_info *info = pinctrl_dev_get_drvdata(pctrldev);
- int mfp = match_mfp(info, pin
+ (range->id * 32)
);
+ int mfp = match_mfp(info, pin);
int pin_func;
if (mfp < 0) {