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>
This commit is contained in:
committed by
Stefan Roese
parent
6822a647b9
commit
de15a06aad
@@ -221,6 +221,9 @@ void flash_perror (int err)
|
||||
case ERR_PROG_ERROR:
|
||||
puts ("General Flash Programming Error\n");
|
||||
break;
|
||||
case ERR_ABORTED:
|
||||
puts("Flash Programming Aborted\n");
|
||||
break;
|
||||
default:
|
||||
printf ("%s[%d] FIXME: rc=%d\n", __FILE__, __LINE__, err);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user