[PATCH] cfi_cmdset_0020.c
David Woodhouse
dwmw2 at infradead.org
Thu Oct 16 01:31:53 EDT 2003
On Wed, 2003-10-15 at 20:54 -0500, J B wrote:
> 2. According to the data sheet for the M58LW032A, the erase operation can
> complete in the period between issuing the suspend command and the time the
> erase controller stops. The last part ot the patch checks the erase
> suspended bit in the status register and only sets the suspended variable if
> the bit is on. This keeps the software state machine in sync with the
> actual state of the hardware.
Consider the case where you have two chips side by side on the bus. One
completes and the other doesn't; your if() statement doesn't match that
but we still needed to restart the erase.
cfi_cmdset_0001.c issues an erase resume and then a status command, to
ensure that the chip goes into status mode even if it had previously
completed the erase.
--
dwmw2
More information about the linux-mtd
mailing list