diff options
author | yongari <yongari@FreeBSD.org> | 2008-11-24 02:21:50 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2008-11-24 02:21:50 +0000 |
commit | 699ae96d83141c114a5b2de8f689e4a7d31ebe29 (patch) | |
tree | 8aea0ed37eeebc6f6b7e0a4ce59c328aa0088c61 | |
parent | bd08bda577485f07b61df23baa6fbd15610b2724 (diff) | |
download | FreeBSD-src-699ae96d83141c114a5b2de8f689e4a7d31ebe29.zip FreeBSD-src-699ae96d83141c114a5b2de8f689e4a7d31ebe29.tar.gz |
Save the value read from TX queue CSR, so we don't test against a
stale one.
Submitted by: sephe
-rw-r--r-- | sys/dev/msk/if_msk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index cccabcf..2b84cad 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -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); |