[PATCH 02/16] drivers/gpio: gpio-nomadik: Add support for irqdomains
arnd at arndb.de
Wed Apr 18 12:22:34 EDT 2012
On Wednesday 18 April 2012, Linus Walleij wrote:
> On Tue, Apr 17, 2012 at 12:43 PM, Lee Jones <lee.jones at linaro.org> wrote:
> > diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c
> > index d11f389..af12139 100644
> > --- a/arch/arm/mach-ux500/cpu.c
> > +++ b/arch/arm/mach-ux500/cpu.c
> > @@ -30,6 +30,7 @@
> > void __iomem *_PRCMU_BASE;
> > +/* FIXME: should we set up the GPIO domain here? */
> Why on earth would we want to do that?
> Get rid of the comment simply...
I asked Lee to put it in ;-)
The problem is that we cannot put the interrupt resources into the platform
device until the irq domain has been added. Right now, we set the gic
interrupt domain from init_IRQ(), then add the load the gpio
driver from core_initcall(nmk_gpio_init) and add the platform devices
This feels fragile because it depends on the gpio device getting probed
before any device using the gpio interrupts. It does seem to work fine
right now, but I'm not convinced that this is just coincidence.
More information about the linux-arm-kernel