]> git.sur5r.net Git - u-boot/commitdiff
cfi_flash: flinfo: allow user interrupt in flash print info fn
authorKim Phillips <kim.phillips@freescale.com>
Mon, 26 Jul 2010 23:35:39 +0000 (18:35 -0500)
committerStefan Roese <sr@denx.de>
Wed, 18 Aug 2010 07:09:00 +0000 (09:09 +0200)
flashes getting larger, users more impatient.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c

index 2d09caf73877998fc194bb6934adaa5de57a665b..1c736868afff2a6341d4aee554815f908525c849 100644 (file)
@@ -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