Skip to contentSkip to conversation

gpio: xgene: Fix kconfig for standby GIPO contoller

PATCH In review Matthias Brugger 3 participants 5 messages Mar 4, 2016 – Mar 16, 2016 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: xgene: Fix kconfig for standby GIPO contoller

The standby GPIO controller can be used as a interrupt controller. Select GPIOLIB_IRQCHIP when compiling this driver. Otherwise we get a compilation error:

drivers/gpio/gpio-xgene-sb.c: In function 'xgene_gpio_sb_probe':
drivers/gpio/gpio-xgene-sb.c:312:10: error: 'struct gpio_chip' has no member named 'irqdomain'

  priv->gc.irqdomain = priv->irq_domain;
          ^

scripts/Makefile.build:295: recipe for target 'drivers/gpio/gpio-xgene-sb.o' failed make[2]: *** [drivers/gpio/gpio-xgene-sb.o] Error 1

Fixes 1013fc41 "gpio: xgene: Enable X-Gene standby GPIO as interrupt controller"
---
 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/Kconfig +1 -0
index 619767b..d9d6cfe 100644
@@ -452,6 +452,7 @@ config GPIO_XGENE_SB
 	tristate "APM X-Gene GPIO standby controller support"
 	depends on ARCH_XGENE && OF_GPIO
 	select GPIO_GENERIC
+	select GPIOLIB_IRQCHIP
 	help
 	  This driver supports the GPIO block within the APM X-Gene
 	  Standby Domain. Say yes here to enable the GPIO functionality.
Signature · 1 line
2.6.2
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Matthias Brugger

The standby GPIO controller can be used as a interrupt controller. Select GPIOLIB_IRQCHIP when compiling this driver. Otherwise we get a compilation error:

drivers/gpio/gpio-xgene-sb.c: In function 'xgene_gpio_sb_probe':
drivers/gpio/gpio-xgene-sb.c:312:10: error: 'struct gpio_chip' has no member named 'irqdomain'

  priv->gc.irqdomain = priv->irq_domain;
          ^
Quoted 9 lines

scripts/Makefile.build:295: recipe for target 'drivers/gpio/gpio-xgene-sb.o' failed make[2]: *** [drivers/gpio/gpio-xgene-sb.o] Error 1

Fixes 1013fc41 "gpio: xgene: Enable X-Gene standby GPIO as interrupt controller"
---
 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)
#2 lore raw
In reply to Matthias Brugger
Quoted 6 lines · Matthias Brugger

The standby GPIO controller can be used as a interrupt controller. Select GPIOLIB_IRQCHIP when compiling this driver. Otherwise we get a compilation error:

drivers/gpio/gpio-xgene-sb.c: In function 'xgene_gpio_sb_probe':
drivers/gpio/gpio-xgene-sb.c:312:10: error: 'struct gpio_chip' has no member named 'irqdomain'

Quoted 7 lines
  priv->gc.irqdomain = priv->irq_domain;
          ^

scripts/Makefile.build:295: recipe for target 'drivers/gpio/gpio-xgene-sb.o' failed make[2]: *** [drivers/gpio/gpio-xgene-sb.o] Error 1

Fixes 1013fc41 "gpio: xgene: Enable X-Gene standby GPIO as interrupt controller"

Quan's patch exporting the symbols has been merged by tglx so dropping this.

Yours,
Linus Walleij

#3 lore raw
Quoted 16 lines · Linus Walleij
Quoted 13 lines · Matthias Brugger

The standby GPIO controller can be used as a interrupt controller. Select GPIOLIB_IRQCHIP when compiling this driver. Otherwise we get a compilation error:

drivers/gpio/gpio-xgene-sb.c: In function 'xgene_gpio_sb_probe':
drivers/gpio/gpio-xgene-sb.c:312:10: error: 'struct gpio_chip' has no member named 'irqdomain'

  priv->gc.irqdomain = priv->irq_domain;
          ^

scripts/Makefile.build:295: recipe for target 'drivers/gpio/gpio -xgene-sb.o' failed
make[2]: *** [drivers/gpio/gpio-xgene-sb.o] Error 1

Quoted 7 lines
Quoted 3 lines
Fixes 1013fc41 "gpio: xgene: Enable X-Gene standby GPIO as

interrupt controller"

Quan's patch exporting the symbols has been merged by tglx so dropping this.

Thanks for the info.

Actually this is v1 [1] of the patch, which just addresses the GPIOLIB_IRQCHIP problem?
With Quan's patch this should still be present.

[1] https://patchwork.kernel.org/patch/8502401/

#4 lore raw
Quoted 25 lines · Matthias Brugger
Quoted 16 lines · Linus Walleij
Quoted 13 lines · Matthias Brugger

The standby GPIO controller can be used as a interrupt controller. Select GPIOLIB_IRQCHIP when compiling this driver. Otherwise we get a compilation error:

drivers/gpio/gpio-xgene-sb.c: In function 'xgene_gpio_sb_probe':
drivers/gpio/gpio-xgene-sb.c:312:10: error: 'struct gpio_chip' has no member named 'irqdomain'

  priv->gc.irqdomain = priv->irq_domain;
          ^

scripts/Makefile.build:295: recipe for target 'drivers/gpio/gpio -xgene-sb.o' failed
make[2]: *** [drivers/gpio/gpio-xgene-sb.o] Error 1

Quoted 7 lines
Quoted 3 lines
Fixes 1013fc41 "gpio: xgene: Enable X-Gene standby GPIO as

interrupt controller"

Quan's patch exporting the symbols has been merged by tglx so dropping this.

Quoted 5 lines

Thanks for the info.

Actually this is v1 [1] of the patch, which just addresses the GPIOLIB_IRQCHIP problem?
With Quan's patch this should still be present.

Ah sorry I screwed up here and confused the patches.

Patch applied.

Yours,
Linus Walleij