Are erase suspends possible?
David Woodhouse
dwmw2 at infradead.org
Tue Apr 2 19:38:39 EST 2002
dross at iders.ca said:
> I'm looking at a recent version, and it has the function
> "cfi_intelext_suspend".
That's for power management.
> "do_erase_oneblock_dont_wait", which doesn't wait for the erase to
> finish, and returns immediately,
You should not be looking in there. You should be calling the mtd->read(),
mtd->write() and mtd->erase() functions. The latter is already permitted to
return immediately, calling a caller-provided callback later on completion.
The read function already suspends active erases to fulfil the read
request. You can easily make the write function do the same, on chips that
support it.
--
dwmw2
More information about the linux-mtd
mailing list