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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Wed, Apr 18, 2012 at 6:22 PM, Arnd Bergmann <arnd@xxxxxxxx> 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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel


[Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [PDAs]     [Linux]     [Linux MIPS]     [Yosemite Campsites]     [Photos]

Add to Google Follow linuxarm on Twitter