Are erase suspends possible?
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
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
More information about the linux-mtd