diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2009-11-15 10:25:28 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2009-11-15 10:25:28 +0000 |
commit | 5b1174a5033dde9064a797bb72b0651759b15435 (patch) | |
tree | f37274af7ad3b99ea0dc29d417cab8ed41624d07 | |
parent | 4932af39fc6e565b626e0a09990b26479b77f17c (diff) |
fix athn_stop_tx_dma().
-rw-r--r-- | sys/dev/ic/athn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c index 205e5d0e027..601c25e61bb 100644 --- a/sys/dev/ic/athn.c +++ b/sys/dev/ic/athn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: athn.c,v 1.1 2009/11/14 16:55:11 damien Exp $ */ +/* $OpenBSD: athn.c,v 1.2 2009/11/15 10:25:27 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -2836,7 +2836,7 @@ athn_stop_tx_dma(struct athn_softc *sc, int qid) AR_WRITE(sc, AR_Q_TXD, 1 << qid); for (ntries = 0; ntries < 40; ntries++) { - if (athn_tx_pending(sc, qid)) + if (!athn_tx_pending(sc, qid)) break; DELAY(100); } @@ -2856,7 +2856,7 @@ athn_stop_tx_dma(struct athn_softc *sc, int qid) AR_CLRBITS(sc, AR_TIMER_MODE, AR_QUIET_TIMER_EN); for (ntries = 0; ntries < 40; ntries++) { - if (athn_tx_pending(sc, qid)) + if (!athn_tx_pending(sc, qid)) break; DELAY(100); } |