cfi: Make the flash erase and write operations abortable
authorJoe Hershberger <joe.hershberger@ni.com>
Fri, 17 Aug 2012 20:36:41 +0000 (15:36 -0500)
committerStefan Roese <sr@denx.de>
Mon, 3 Sep 2012 09:24:27 +0000 (11:24 +0200)
commitde15a06aad1f221255366ac07238c80fed146da1
tree73921dc7c0bfabbad9696bc1e97181367c0029d6
parent6822a647b94cb05869231251e5a29f9742bb3ce2
cfi: Make the flash erase and write operations abortable

Check for ctrlc() in operations that take time and loop over the flash
addresses.

In netconsole, tstc() is expensive.  Only check once in a while to not
slow down the operation significantly.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Stefan Roese <sr@denx.de>
common/cmd_flash.c
common/flash.c
drivers/mtd/cfi_flash.c
include/flash.h