Skip to contentSkip to conversation

pinctrl: meson: fix gpio request disabling other modes

PATCH In review Neil Armstrong 4 participants 4 messages Dec 6, 2016 – Dec 28, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: meson: fix gpio request disabling other modes

The pinctrl_gpio_request is called with the "full" gpio number, already containing the base, then meson_pmx_request_gpio is then called with the final pin number.
Remove the base addition when calling meson_pmx_disable_other_groups.

Fixes 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs")
CC Beniamino Galvani <[email protected]>
---
 drivers/pinctrl/meson/pinctrl-meson.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/meson/pinctrl-meson.c +1 -1
index a579126..620c231a 100644
@@ -212,7 +212,7 @@ static int meson_pmx_request_gpio(struct pinctrl_dev *pcdev,
 {
 	struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev);
 
-	meson_pmx_disable_other_groups(pc, range->pin_base + offset, -1);
+	meson_pmx_disable_other_groups(pc, offset, -1);
 
 	return 0;
 }
Signature · 1 line
2.7.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Neil Armstrong

The pinctrl_gpio_request is called with the "full" gpio number, already containing the base, then meson_pmx_request_gpio is then called with the final pin number.
Remove the base addition when calling meson_pmx_disable_other_groups.

Fixes 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs")
CC Beniamino Galvani <[email protected]>
Acked-by on v1 1/1
#2 lore raw
In reply to Neil Armstrong
Quoted 8 lines · Neil Armstrong

The pinctrl_gpio_request is called with the "full" gpio number, already containing the base, then meson_pmx_request_gpio is then called with the final pin number.
Remove the base addition when calling meson_pmx_disable_other_groups.

Fixes 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs")
CC Beniamino Galvani <[email protected]>
#3 lore raw
In reply to Neil Armstrong
Quoted 8 lines · Neil Armstrong

The pinctrl_gpio_request is called with the "full" gpio number, already containing the base, then meson_pmx_request_gpio is then called with the final pin number.
Remove the base addition when calling meson_pmx_disable_other_groups.

Fixes 6ac730951104 ("pinctrl: add driver for Amlogic Meson SoCs")
CC Beniamino Galvani <[email protected]>

Patch applied for fixes. Sorry for the delay, merge window appeared inbetween.

Yours,
Linus Walleij