From: Kim Phillips Date: Mon, 26 Jul 2010 23:35:39 +0000 (-0500) Subject: cfi_flash: flinfo: allow user interrupt in flash print info fn X-Git-Tag: v2010.09-rc1~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e97394a6d07a36dfc139b7b98b12e452b5bd8dc;p=u-boot cfi_flash: flinfo: allow user interrupt in flash print info fn flashes getting larger, users more impatient. Signed-off-by: Kim Phillips Signed-off-by: Stefan Roese --- diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 2d09caf738..1c736868af 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -1159,6 +1159,8 @@ void flash_print_info (flash_info_t * info) puts ("\n Sector Start Addresses:"); for (i = 0; i < info->sector_count; ++i) { + if (ctrlc()) + return; if ((i % 5) == 0) printf ("\n"); #ifdef CONFIG_SYS_FLASH_EMPTY_INFO