Increase the timeout in wi_cmd(). Fixes reports of "busy didn't

clear".  From David Young <dyoung@ojctech.com>.
This commit is contained in:
thorpej 2002-09-27 21:54:17 +00:00
parent bc35b15d70
commit 3c31492a4f
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}