[PATCH 02/16] drivers/gpio: gpio-nomadik: Add support for irqdomains
Linus Walleij
linus.walleij at linaro.org
Fri Apr 20 02:47:14 EDT 2012
On Thu, Apr 19, 2012 at 6:23 PM, Arnd Bergmann <arnd at arndb.de> wrote:
> If we move the code that adds the resources to a platform_device
> from of_device_alloc() to platform_drv_probe(), we can defer
> looking up the interrupt number until the driver actually gets
> probed and bail out early with -EPROBE_DEFER if the irq domain
> is not available yet. That will even work when we have a builtin
> driver for a device that uses a GPIO interrupt and the gpio controller
> driver is a loadable module.
Sounds like a good idea, we just need to make sure that the
corresponding AMBA/PrimeCell devices doesn't end up with different
semantics because of this.
So might need some patching around that bus as well.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list