Concurrency erase/write on the same AMD chip with not aligned words

David Woodhouse dwmw2 at infradead.org
Thu Aug 7 06:36:58 EDT 2003


On Tue, 2003-08-05 at 11:12, Stefano Babic wrote:
> Hi all,
> 
> I have seen a problem when I am writing not-aligned words on AMD chips
> while on the same chip another process starts an erase procedure for
> other sectors or a different MTD device. 

 <...>

> I set the check with the cfi status before the copy_from() as usual with
> (mutex omissis):
> 
>         if (cfi->chips[chipnum].state != FL_READY) {
> 		.....
> 
> to be sure that the chip is not in FL_ERASING and everything is working
> fine. 
> 
> Has anybody had the same problem ? 

I haven't seen it personally, but it definitely looks like you're right.
Please could you send a patch?

-- 
dwmw2




More information about the linux-mtd mailing list