Skip to content

RFC Convert some ARM platforms to basic-mmio-gpio

Anton Vorontsov linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 of 5 patches 0 repliesNew

1 of 5 patches is in this archive. The cover letter announces 5.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gemini: convert to basic-mmio-gpio+0 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

On Mon, Apr 11, 2011 at 04:49:28PM +0200, Uwe Kleine-K?nig wrote:
[...]

Quoted 7 lines
Quoted 5 lines

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).

Thanks,

Signature · 2 lines
Anton Vorontsov
Email: cbouatmailru at gmail.com