[PATCH][MTD] mtdpart.c: allow other drivers to get physical address of partition

Jared Hulbert jaredeh at gmail.com
Fri Jul 27 16:53:42 EDT 2007


> Protection makes sense.  Do you also need the virtual address?

Yes all kernel domain read would use that address range.  In the end
it is only the vm_insert_pfn() call that needs the physical.

> > > What is wrong with those functions?
> >
> > They don't get me the physical address.
>
> Might be an idea to extent point() to pass a physical address as well.
> Not sure.

I thought about that.  I don't think it's worth it.  Point() does it's
job fine.  I could add a peer to point called physaddr() that returns
an address instead of a pointer.  That really doesn't doesn't help me.
 I named it mtd_get_partition_physaddr() because all I need is to get
the physical address of the mtd partition.  And if I get around to
doing an acceptable port of XIP cramfs thats all it would need too.



More information about the linux-mtd mailing list