Skip to contentSkip to conversation

pinctrl: meson: axg: fix gpio_ao bank stop pin

PATCH In review Jerome Brunet 2 participants 2 messages Jan 16, 2018 – Jan 17, 2018

Subsystems (3)
lore
Share & tools
lore

Jerome Brunet

author reviewer
#0 lore raw

PATCH 1/1 pinctrl: meson: axg: fix gpio_ao bank stop pin

GPIO bank mistakenly stops at GPIOAO_9 while it should stop at GPIOAO_13. This gives -EINVAL if one tries to set/get anything on GPIOAO_10 to GPIOAO_13 (pull, direction, value)

Correcting the bank last pin fixes this problem

Fixes e072b0f1b03a ("pinctrl: meson-axg: Add new pinctrl driver for Meson AXG SoC")

---

Hi Linus,

This changes fixes code which was added during this cycle, so it intended for your "for-next" branch, not the "fixes" one.

Thanks
Jerome

 drivers/pinctrl/meson/pinctrl-meson-axg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/meson/pinctrl-meson-axg.c +2 -2
index a1a7d42afd42..6431d77a4704 100644
@@ -897,8 +897,8 @@ static struct meson_bank meson_axg_periphs_banks[] = {
 };
 
 static struct meson_bank meson_axg_aobus_banks[] = {
-	/*   name    first      last      irq	pullen  pull    dir     out     in  */
-	BANK("AO",   GPIOAO_0,  GPIOAO_9, 0, 13, 0,  16,  0, 0,  0,  0,  0, 16,  1,  0),
+	/*   name    first      last       irq    pullen   pull   dir     out     in  */
+	BANK("AO",   GPIOAO_0,  GPIOAO_13, 0, 13, 0,  16,  0, 0,  0,  0,  0, 16,  1,  0),
 };
 
 static struct meson_pmx_bank meson_axg_periphs_pmx_banks[] = {
Signature · 1 line
2.14.3
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Jerome Brunet

GPIO bank mistakenly stops at GPIOAO_9 while it should stop at GPIOAO_13. This gives -EINVAL if one tries to set/get anything on GPIOAO_10 to GPIOAO_13 (pull, direction, value)

Correcting the bank last pin fixes this problem

Fixes e072b0f1b03a ("pinctrl: meson-axg: Add new pinctrl driver for Meson AXG SoC")
Quoted 28 lines

---

Hi Linus,

This changes fixes code which was added during this cycle, so it intended for your "for-next" branch, not the "fixes" one.

Thanks
Jerome

 drivers/pinctrl/meson/pinctrl-meson-axg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/meson/pinctrl-meson-axg.c +2 -2
index a1a7d42afd42..6431d77a4704 100644
@@ -897,8 +897,8 @@ static struct meson_bank meson_axg_periphs_banks[] = {
 };
 
 static struct meson_bank meson_axg_aobus_banks[] = {
-	/*   name    first      last      irq	pullen  pull    dir     out     in  */
-	BANK("AO",   GPIOAO_0,  GPIOAO_9, 0, 13, 0,  16,  0, 0,  0,  0,  0, 16,  1,  0),
+	/*   name    first      last       irq    pullen   pull   dir     out     in  */
+	BANK("AO",   GPIOAO_0,  GPIOAO_13, 0, 13, 0,  16,  0, 0,  0,  0,  0, 16,  1,  0),
 };
 
 static struct meson_pmx_bank meson_axg_periphs_pmx_banks[] = {