cfi: fix GDB keep alive bug
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 5 May 2010 14:18:50 +0000 (16:18 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 8 Jun 2010 08:48:46 +0000 (10:48 +0200)
Long running CFI writes could cause GDB timeout.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/flash/nor/cfi.c

index 8c1aacad263798e11179fb8790ccb276f731ed15..f0ab332fbd08eb4682caf10e5801482f0172c320 100644 (file)
@@ -1232,6 +1232,8 @@ static int cfi_intel_write_block(struct flash_bank *bank, uint8_t *buffer, uint3
                buffer += thisrun_count;
                address += thisrun_count;
                count -= thisrun_count;
+
+               keep_alive();
        }
 
        /* free up resources */