From 4da640563b95939cd3fe9275053ba3181de723c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Thu, 3 Mar 2011 09:16:11 +0100 Subject: [PATCH] zy1000: fix incorrect usage of jtag_sleep() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by inspection: the correct thing in the context is to use usleep() rather than jtag_sleep(). Relates to JTAG over TCP/IP only. Signed-off-by: Øyvind Harboe --- src/jtag/zy1000/zy1000.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index 3344e0ee9..a8f7ffc7a 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -1393,7 +1393,8 @@ static void tcpipserver(void) uint32_t data; if (!readLong(&data)) return; - jtag_sleep(data); + /* Wait for some us */ + usleep(data); break; } case ZY1000_CMD_WAITIDLE: