[PATCH] [MTD] Correct partition failed erase address

David Woodhouse dwmw2 at infradead.org
Thu Mar 8 05:33:09 EST 2007


On Thu, 2007-03-08 at 10:27 +0000, David Woodhouse wrote:
> 
> Erase isn't always synchronous. It can return success (i.e. erase queued
> successfully) and later call the callback with an indication of failure. 

... and mtd_erase_callback() already subtracts the necessary offset.

I really don't like our API very much, but it doesn't seem to be broken
in this particular way.

When we fix things to cope with flash larger than 4GiB, I think we
should make larger changes to the way that partitioning works as well as
reconsidering the read/write/erase API.

-- 
dwmw2





More information about the linux-mtd mailing list