summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-08-29 15:46:41 +0000
committerimp <imp@FreeBSD.org>2005-08-29 15:46:41 +0000
commitf20f47a7bae70a05e55f1b28a204cca17f5a0bf9 (patch)
treed4c3169adc00c58d3e34f1f0647f43acc0b5151b /sys/dev/wi
parent418b31b4955a88b7cfaf94784e03f564c947e3f4 (diff)
downloadFreeBSD-src-f20f47a7bae70a05e55f1b28a204cca17f5a0bf9.zip
FreeBSD-src-f20f47a7bae70a05e55f1b28a204cca17f5a0bf9.tar.gz
Eliminate bogus seatbelt in wi_cmd. This may have been appropriate
for the spl-era locking, but now that we can have multiple, concurrent interrupts for multiple wi devices, having a global check to make sure at most one of them was in wi_cmd no longer makes sense. MFC After: 2 decifortnight
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 0b01387..a3e69d6 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -2431,15 +2431,10 @@ static int
wi_cmd(struct wi_softc *sc, int cmd, int val0, int val1, int val2)
{
int i, s = 0;
- static volatile int count = 0;
if (sc->wi_gone)
return (ENODEV);
- if (count > 0)
- panic("Hey partner, hold on there!");
- count++;
-
/* wait for the busy bit to clear */
for (i = sc->wi_cmd_count; i > 0; i--) { /* 500ms */
if (!(CSR_READ_2(sc, WI_COMMAND) & WI_CMD_BUSY))
OpenPOWER on IntegriCloud