From 9c8052ef7dfc86fab609a77d8f4fc69f6dbe40ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sat, 2 Feb 2008 13:03:01 +0000 Subject: [PATCH] increased timeout count to fix [ 1882111 ] Timeout in amdstatus() too small git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@986 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/flash/amd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 7596135a..3d4bbac8 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2008-02-02 Arnim Laeuger + + * src/flash/amd.c (amdstatus): increase timeout count to address + [ 1882111 ] Timeout in amdstatus() too small + 2008-02-02 Kolja Waschk * src/tap/cable.c: Automatically resize JTAG activity queue if necessary, diff --git a/jtag/src/flash/amd.c b/jtag/src/flash/amd.c index 221560c2..5691d4ac 100644 --- a/jtag/src/flash/amd.c +++ b/jtag/src/flash/amd.c @@ -140,7 +140,7 @@ amdstatus( bus_t *bus, uint32_t adr, int data ) uint32_t togglemask = ((1 << 6) << 16) + (1 << 6); /* DQ 6 */ /* int dq5mask = ((1 << 5) << 16) + (1 << 5); DQ5 */ - for (timeout = 0; timeout < 100; timeout++) { + for (timeout = 0; timeout < 7000; timeout++) { uint32_t data1 = bus_read( bus, adr ); uint32_t data2 = bus_read( bus, adr );