MTD lock support for AMD_STD flash.

Eric W. Biederman ebiederman at lnxi.com
Wed Sep 15 14:15:51 EDT 2004


Pantelis Antoniou <panto at intracom.gr> writes:

> Hi there
> 
> While trying to get MTD in 2.6 working in my board I stubbled on
> this.
> 
> The lock/unlock logic does not seem to work for AMD STD jedec flashes.

Right.  We got away with this for a while because the on devices
without lock/unlock methods people usually don't call them.
 
> This happens when trying to lock a block for MX29LV040C, and I think
> will happen with all AMD STD flashes.
> 
> The thing is that these chips don't have support for locking, but I can't
> find a way to declare it in the command set.
> 
> So the way to avoid this I set the lock & unlock methods in my map file.
> 
> This is a gross hack however and I'm wondering if there's an easier way...

Yes.  It should already be committed into MTD cvs.  Please check it out.
With a little luck I will start pushing these changes to 2.6 in the next
day or so.

Eric




More information about the linux-mtd mailing list