On Fri, Sep 02, 2016 at 11:21:12PM +0200, Robert Jarzmik wrote: > It looks that I have an ordering problem : > - I want gpio-pxa.probe() to be called at device initcall time > - pxa_cplds_irqs.probe() cannot complete before gpio-pxa.probe() because it > needs GPIO0 as its interrupt source > => it might need to honor -EPROBE_DEFER > - sa1111.sa1111_probe() cannot complete before pxa_cplds_irqs.probe() because > it needs IRQ305 as its source > => it might need to honor -EPROBE_DEFER I wonder if we can work around that by adding this to sa1111_probe(): if (!irq_get_chip(irq)) return -EPROBE_DEFER; It's not particularly nice, but it should at least ensure that things happen in the right order. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html