From 14c112e992c405442a751342bb6bca4adb0ae90a Mon Sep 17 00:00:00 2001
From: Øyvind Harboe <oyvind.harboe@zylin.com>
Date: Wed, 5 May 2010 16:18:50 +0200
Subject: 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 <oyvind.harboe@zylin.com>
---
 src/flash/nor/cfi.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/flash')

diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c
index 8c1aacad..f0ab332f 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 */
-- 
cgit v1.2.3