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

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Apr 28 05:28:39 EDT 2011


On 09:33 Thu 28 Apr     , Russell King - ARM Linux wrote:
> 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.
cool which one?

Best Regards,
J.



More information about the linux-arm-kernel mailing list