Oh, the many joys of MTD...

Jonas Holmberg jonas.holmberg at axis.com
Tue Mar 13 02:24:52 EST 2001


> On Thu, 8 Mar 2001, Nicolas Pitre wrote:
> > > My first questions is likely something fairly basic.  
> I've read over much of
> > > the MTD source and it seems that many of the erase and 
> write functions do
> > > not deal with concurrent access and CPU cache issues.  
> What happens when a
> > > {read,write,erase} request comes in for a sector that is being
> > > {written,erased}?
> > 
> > Those are exclusively protected by state machines and 
> locks.  For example,
> > see the usage of chip->state in cfi_cmdset_0001.c.
> 
> Only cfi_cmdset_* does this.  jedec, amd_flash, etc. do not.

amd_flash: I think it does (or have you found a bug?).

/Jonas


To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list