From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 28 Apr 2011 09:33:12 +0100 Subject: [PATCH] clkdev: add support to lookup for early platform device In-Reply-To: <20110428032906.GN29103@game.jcrosoft.org> References: <20110427103145.GF29103@game.jcrosoft.org> <20110427104758.GG29103@game.jcrosoft.org> <20110427150057.GH29103@game.jcrosoft.org> <20110428020910.GA13539@linux-sh.org> <20110428024559.GK29103@game.jcrosoft.org> <20110428030817.GC13539@linux-sh.org> <20110428031704.GL29103@game.jcrosoft.org> <20110428032000.GM29103@game.jcrosoft.org> <20110428032906.GN29103@game.jcrosoft.org> Message-ID: <20110428083312.GL17290@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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.