[RFC PATCH 0/5] Convert some ARM platforms to basic-mmio-gpio

Anton Vorontsov cbouatmailru at gmail.com
Tue Apr 12 11:06:20 EDT 2011

On Mon, Apr 11, 2011 at 04:49:28PM +0200, Uwe Kleine-König wrote:
> > Hmm, so this looks like it's because mxc_gpio_init() is being called 
> > from init_IRQ which is too early for platform devices.  Is there a 
> > suitable place where this can be called later in the boot process?  I 
> > guess the gpio irq stuff should remain where it is but the 
> > platform_device registration should be moved to later.
> I guess this means that using gpios in .init_machine (== arch_initcall
> time) stops working then?

Probably it's a bad sign for a platform if it wants to use it
that early (i.e. like init_IRQ).

But as GPIOs is quite essential part of an embedded system, and
some platform code might actually need it, I guess having the stuff
available in arch_initcall would be fine though (assuming
basic_mmio_gpio will be changed to use postcore_initcall).


Anton Vorontsov
Email: cbouatmailru at gmail.com

More information about the linux-arm-kernel mailing list