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:
Pyun YongHyeon 2011-01-28 21:03:32 +00:00
parent d77e2e42b3
commit f69ddfbb5f

View File

@ -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);
}