summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-08-24 23:08:13 +0000
committermjacob <mjacob@FreeBSD.org>2001-08-24 23:08:13 +0000
commitb714916e03e6972c6ed2c97b245ef923d3210044 (patch)
treed6a351ea2a27cf3fb5f1cf83eb110e9a256185ec /sys/pci
parent12d4e47ee80aea2e579660acb7dcc589cb20003c (diff)
downloadFreeBSD-src-b714916e03e6972c6ed2c97b245ef923d3210044.zip
FreeBSD-src-b714916e03e6972c6ed2c97b245ef923d3210044.tar.gz
John Polstra
bogus additional write to WXREG_IMASK that enabled *all* interrupt causes while I was trying to disable the chip. Oops.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_wx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/if_wx.c b/sys/pci/if_wx.c
index 9677413..ad2d4c4 100644
--- a/sys/pci/if_wx.c
+++ b/sys/pci/if_wx.c
@@ -1704,17 +1704,16 @@ wx_hw_stop(wx_softc_t *sc)
{
u_int32_t icr;
DPRINTF(sc, ("%s: wx_hw_stop\n", sc->wx_name));
+ WX_DISABLE_INT(sc);
if (sc->wx_idnrev < WX_WISEMAN_2_1) {
wx_mwi_whackon(sc);
}
WRITE_CSR(sc, WXREG_DCR, WXDCR_RST);
DELAY(20 * 1000);
- WRITE_CSR(sc, WXREG_IMASK, ~0);
icr = READ_CSR(sc, WXREG_ICR);
if (sc->wx_idnrev < WX_WISEMAN_2_1) {
wx_mwi_unwhack(sc);
}
- WX_DISABLE_INT(sc);
}
static void
OpenPOWER on IntegriCloud