summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wi.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-21 15:48:21 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-21 15:48:21 +0000
commitfbe2b70847aa8dc9eecfdd4a9f184ee1fea9cc47 (patch)
tree95e705fe05531c59d7949d5f56351070c4a03a69 /sys/dev/ic/if_wi.c
parentfca978b6e7568a0f834856a32dc5aaae70e7baaa (diff)
increase the timeout 10x, it seems some cards cannot keep up w/ our pace
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r--sys/dev/ic/if_wi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index 931775862b4..376bd53d45f 100644
--- a/sys/dev/ic/if_wi.c
+++ b/sys/dev/ic/if_wi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi.c,v 1.17 2001/10/25 16:39:25 mickey Exp $ */
+/* $OpenBSD: if_wi.c,v 1.18 2001/12/21 15:48:19 mickey Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -120,7 +120,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.17 2001/10/25 16:39:25 mickey Exp $";
+ "$OpenBSD: if_wi.c,v 1.18 2001/12/21 15:48:19 mickey Exp $";
#endif /* lint */
#ifdef foo
@@ -538,7 +538,7 @@ wi_cmd(sc, cmd, val)
for (i = 0; i < WI_TIMEOUT; i++) {
if (!(CSR_READ_2(sc, WI_COMMAND) & WI_CMD_BUSY))
break;
- DELAY(1);
+ DELAY(10);
}
CSR_WRITE_2(sc, WI_PARAM0, val);
@@ -546,7 +546,7 @@ wi_cmd(sc, cmd, val)
CSR_WRITE_2(sc, WI_PARAM2, 0);
CSR_WRITE_2(sc, WI_COMMAND, cmd);
- for (i = WI_TIMEOUT; i--; DELAY(1)) {
+ for (i = WI_TIMEOUT; i--; DELAY(10)) {
/*
* Wait for 'command complete' bit to be
* set in the event status register.
@@ -805,7 +805,7 @@ wi_seek(sc, id, off, chan)
CSR_WRITE_2(sc, selreg, id);
CSR_WRITE_2(sc, offreg, off);
- for (i = WI_TIMEOUT; i--; DELAY(1))
+ for (i = WI_TIMEOUT; i--; DELAY(10))
if (!(CSR_READ_2(sc, offreg) & (WI_OFF_BUSY|WI_OFF_ERR)))
break;
@@ -897,7 +897,7 @@ wi_alloc_nicmem(sc, len, id)
return(ENOMEM);
}
- for (i = WI_TIMEOUT; i--; DELAY(1)) {
+ for (i = WI_TIMEOUT; i--; DELAY(10)) {
if (CSR_READ_2(sc, WI_EVENT_STAT) & WI_EV_ALLOC)
break;
}