diff options
| author | thorpej <thorpej@NetBSD.org> | 2002-09-27 21:54:17 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2002-09-27 21:54:17 +0000 |
| commit | 3c31492a4f340e010a5bdbf44cbd30348ea09eb3 (patch) | |
| tree | dc92a6e19a066e7ecfbdd0c0a063511d76630b71 /sys/dev | |
| parent | bc35b15d70c5f265f53c15be7e888fd3fc080582 (diff) | |
Increase the timeout in wi_cmd(). Fixes reports of "busy didn't
clear". From David Young <dyoung@ojctech.com>.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/wi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/wi.c b/sys/dev/ic/wi.c index 2b4f8b4f081..b9bb42964c1 100644 --- a/sys/dev/ic/wi.c +++ b/sys/dev/ic/wi.c @@ -1,4 +1,4 @@ -/* $NetBSD: wi.c,v 1.87 2002/09/26 23:55:43 martin Exp $ */ +/* $NetBSD: wi.c,v 1.88 2002/09/27 21:54:17 thorpej Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.87 2002/09/26 23:55:43 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.88 2002/09/27 21:54:17 thorpej Exp $"); #define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */ #define WI_HERMES_STATS_WAR /* Work around stats counter bug. */ @@ -1407,7 +1407,7 @@ wi_cmd(sc, cmd, val0, val1, val2) int i, s = 0; /* Wait 100us for the busy bit to clear. */ - for (i = 10; i--; DELAY(10)) { + for (i = 100; i--; DELAY(10)) { if (!(CSR_READ_2(sc, WI_COMMAND) & WI_CMD_BUSY)) break; } |
