[PATCH] MTD Maps driver for Sharp LH7a40x

Marc Singer elf at buici.com
Fri Jun 18 20:38:18 EDT 2004


On Sat, Jun 19, 2004 at 02:16:29AM +0200, Thomas Gleixner wrote:
> Jun,
> 
> On Saturday 19 June 2004 02:05, Jun Sun wrote:
> >
> > How about just using physmap mapping driver and keep all your
> > board specific stuff to your board directory?   See
> > include/linux/mtd/physmap.h for more details.
> 
> Thanks for jumping in. That's what I was trying to point out. 
> 
> In fact most of the board drivers in drivers/mtd/maps could / should go away. 
> The reason to have one is crappy hardware, unusual chip constellations or 
> other anomalities.
> 
> The common case can just be solved by using the physmap driver and the command 
> line partition parser. Maybe we should think about an extension to physmap so 
> the board support code can supply an appropriate partitioning scheme along 
> with the chip description. 
> 
> I was thinking about simliar support for the NAND driver too, but there it 
> turns out that the anomalities are given per design, although it should not 
> be an unsolvable problem.

I've chatted with Russell King about this, too.  I think we agree that
board-specific code would be a bad idea.  The better solution appears
to be something on the command line.  I'm going to look into it.  For
now, consider this PATCH discarded.






More information about the linux-mtd mailing list