Fix logic error. Due to the bug, it incorrectly checked TXQ status
which in turn can leave TXQ active. Submitted by: Brad ( brad <> comstyle dot com ) MFC after: 3 days
This commit is contained in:
parent
d77e2e42b3
commit
f69ddfbb5f
@ -3556,7 +3556,7 @@ alc_stop_queue(struct alc_softc *sc)
|
||||
}
|
||||
/* Disable TxQ. */
|
||||
reg = CSR_READ_4(sc, ALC_TXQ_CFG);
|
||||
if ((reg & TXQ_CFG_ENB) == 0) {
|
||||
if ((reg & TXQ_CFG_ENB) != 0) {
|
||||
reg &= ~TXQ_CFG_ENB;
|
||||
CSR_WRITE_4(sc, ALC_TXQ_CFG, reg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user