lock bit and erase errors
Josh Boyer
jdub at us.ibm.com
Mon Mar 21 11:52:45 EST 2005
On Thu, 2005-03-17 at 11:34 +0100, Jörn Engel wrote:
> >
> > FYI, I just ran this with a 2.6 kernel + fairly recent MTD code and I
> > see the same problems.
> >
> > No more updates from me until I hear back, I promise :).
>
> I've had a quick look and would agree with you right now. This
> appears to be a bug.
Thomas and I thought so too.
>
> Generally speaking, there appears to be a lack of automated tests for
> the cfi code. Getting it to work right for all combinations of bus
> widths, etc. is a challenge. But automated tests would require one
> device of each kind and I have no idea how to get all those.
Me either. Some kind of test suite would be nice though. Artem has the
NAND simulator. Perhaps someone could make a NOR simulator as well to
test the CFI stuff? Any volunteers?
>
> Maybe you should just fix your special case and hope not to break
> someone else.
Thomas actually came up with a patch for it and it's in CVS now. It
fixed my bogus status merging problem so an error is actually returned
when an erase fails.
As for why dd never reported an error, that is because dd is stupid and
doesn't flush any of it's writes. It just relies on the flush that is
done on the implicit close when exit(0) is called.
josh
More information about the linux-mtd
mailing list