From 14c112e992c405442a751342bb6bca4adb0ae90a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Wed, 5 May 2010 16:18:50 +0200 Subject: [PATCH] cfi: fix GDB keep alive bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Long running CFI writes could cause GDB timeout. Signed-off-by: Øyvind Harboe --- src/flash/nor/cfi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index 8c1aacad2..f0ab332fb 100644 --- a/src/flash/nor/cfi.c +++ b/src/flash/nor/cfi.c @@ -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 */