[PATCH] CORE: Allow kernel access to struct mtd_part and PART() for axfs

David Woodhouse dwmw2 at infradead.org
Sun Aug 20 04:17:31 EDT 2006


On Fri, 2006-08-18 at 02:23 -0700, Jared Hulbert wrote:
> This is best way we could figure out to get access to the physical
> address of a given partition.  We _need_ the physical address to use
> remap_pfn_range().

If it's going to be public information I'd prefer to just add it to the
struct mtd_info rather than exposing more private structures just
because they happen to contain it at the moment.

But really, you need to be able to coordinate with the flash driver so
that you can read from it _only_ when it's in read mode. This kind of
thing is what point() is for. The whole point()/unpoint() thing is
probably misdesigned, so feel free to make suggestions for changing it,
if it doesn't do what you want.

How do you handle tearing down a mapping when the data moves from one
place on the flash to another? Or does that not happen? 

-- 
dwmw2





More information about the linux-mtd mailing list