Fix interrupt race.
From NetBSD
This commit is contained in:
parent
cb339c7cd9
commit
81f290a510
@ -563,8 +563,8 @@ wi_intr(void *arg)
|
|||||||
WI_LOCK(sc);
|
WI_LOCK(sc);
|
||||||
|
|
||||||
if (sc->wi_gone || (ifp->if_flags & IFF_UP) == 0) {
|
if (sc->wi_gone || (ifp->if_flags & IFF_UP) == 0) {
|
||||||
CSR_WRITE_2(sc, WI_EVENT_ACK, ~0);
|
|
||||||
CSR_WRITE_2(sc, WI_INT_EN, 0);
|
CSR_WRITE_2(sc, WI_INT_EN, 0);
|
||||||
|
CSR_WRITE_2(sc, WI_EVENT_ACK, ~0);
|
||||||
WI_UNLOCK(sc);
|
WI_UNLOCK(sc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user