DataFlash & writesize

David Brownell david-b at pacbell.net
Tue Jun 27 04:10:59 EDT 2006


On Tuesday 27 June 2006 12:05 am, Artem B. Bityutskiy wrote:
> David,
> 
> David Brownell wrote:
> > What are the intended semantics for "writesize" by the way?
> 
> Design-wise, it an attempt to generalize MTD. Different flashes have 
> different minimal I/O unit size, like 1 byte in case of NOR, 16 bytes in 
> case of ECCed NOR, 512/2K in case of NAND, etc.

OK, thanks.  For some reason the "writesize" I found didn't include
the <linux/mtd/mtd.h> comment you mentioned... I guess that was the
one in mtd-abi.h instead.


> > I noticed I was getting that first BUG_ON in mtdcore:add_mtd_device
> > since, with NOR CFI cmdset 1 flash, with current GIT.  Seems like
> > writesie should have been set up already.
> 
> We fixed all drivers and now it should be fine - see commit 
> 17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d

It's not fixed upstream yet.

- Dave




More information about the linux-mtd mailing list