diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-04-10 19:07:25 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-04-10 19:07:25 +0000 |
commit | 88cb77b8bff1df13bf5accbb64e71f79a73193f1 (patch) | |
tree | 2eac790ccc6b93194d2790d89e12174389574436 | |
parent | fd38d788bc6819af93a6742baa3719bd4117ee29 (diff) |
fix athn_stop_tx_dma
-rw-r--r-- | sys/dev/ic/athn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c index dbc945b2869..6062748800b 100644 --- a/sys/dev/ic/athn.c +++ b/sys/dev/ic/athn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: athn.c,v 1.34 2010/04/10 10:59:12 damien Exp $ */ +/* $OpenBSD: athn.c,v 1.35 2010/04/10 19:07:24 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -2872,7 +2872,7 @@ athn_stop_tx_dma(struct athn_softc *sc, int qid) AR_WRITE(sc, AR_QUIET_PERIOD, 100); AR_WRITE(sc, AR_NEXT_QUIET_TIMER, tsflo); AR_SETBITS(sc, AR_TIMER_MODE, AR_QUIET_TIMER_EN); - if (AR_READ(sc, AR_TSF_L32) / 1024 != tsflo) + if (AR_READ(sc, AR_TSF_L32) / 1024 == tsflo) break; } AR_SETBITS(sc, AR_DIAG_SW, AR_DIAG_FORCE_CH_IDLE_HIGH); |