Save the value read from TX queue CSR, so we don't test against a

stale one.

Submitted by:	sephe
This commit is contained in:
Pyun YongHyeon 2008-11-24 02:21:50 +00:00
parent 6902009e2a
commit e48163252e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185244

View File

@ -3966,7 +3966,7 @@ msk_stop(struct msk_if_softc *sc_if)
if ((val & (BMU_STOP | BMU_IDLE)) == 0) {
CSR_WRITE_4(sc, Q_ADDR(sc_if->msk_txq, Q_CSR),
BMU_STOP);
CSR_READ_4(sc, Q_ADDR(sc_if->msk_txq, Q_CSR));
val = CSR_READ_4(sc, Q_ADDR(sc_if->msk_txq, Q_CSR));
} else
break;
DELAY(1);