[PATCH 02/16] drivers/gpio: gpio-nomadik: Add support for irqdomains

Linus Walleij linus.walleij at linaro.org
Wed Apr 18 12:26:50 EDT 2012


On Wed, Apr 18, 2012 at 6:22 PM, Arnd Bergmann <arnd at arndb.de> wrote:

> 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
> from arch_initcall(customize_machine).
>
> 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.

Aha OK. Why not put in that big comment then, thus nobody will
ever miss the point like I did :-)

Thanks!
Linus Walleij



More information about the linux-arm-kernel mailing list