[PATCH] clkdev: add support to lookup for early platform device

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Apr 28 04:33:12 EDT 2011


On Thu, Apr 28, 2011 at 05:29:06AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> I use it for gpio drivers that are init during map_io

Why are you initializing hardware during map_io?  That's totally crazy.
Don't do that - the new mappings won't be flushed out of the cache/tlb
at that point, so it's going to be hit and miss whether you can access
the device without locking up the kernel.

Instead, use the early initialization hook which I've recently added for
this stuff, and keep the map_io for _only_ doing what the name says.



More information about the linux-arm-kernel mailing list