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

Jamie Iles jamie at jamieiles.com
Mon Apr 11 11:13:21 EDT 2011


On Mon, Apr 11, 2011 at 04:49:28PM +0200, Uwe Kleine-König wrote:
> Hello,
> 
> On Mon, Apr 11, 2011 at 03:33:27PM +0100, Jamie Iles 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? Actually I wanted to test if this is broken
> already now because the driver is registered too late.

I've just tried this on my platform and no, the GPIO's won't be 
available for .init_machine().

> Actually my build doesn't even have CONFIG_GPIO_BASIC_MMIO=y. I 
> suggest to let the converted platforms select it.

OK, that sounds like a good plan.

Jamie



More information about the linux-arm-kernel mailing list