Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/marvell In gtmpscinit_stop(), don't wait for abort c...



details:   https://anonhg.NetBSD.org/src/rev/bb285fa905cd
branches:  trunk
changeset: 546545:bb285fa905cd
user:      scw <scw%NetBSD.org@localhost>
date:      Thu May 01 12:13:26 2003 +0000

description:
In gtmpscinit_stop(), don't wait for abort completion status if the
receiver is disabled. It'll never complete in this case.

diffstat:

 sys/dev/marvell/gtmpsc.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 96dde26a613d -r bb285fa905cd sys/dev/marvell/gtmpsc.c
--- a/sys/dev/marvell/gtmpsc.c  Thu May 01 11:29:55 2003 +0000
+++ b/sys/dev/marvell/gtmpsc.c  Thu May 01 12:13:26 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gtmpsc.c,v 1.6 2003/04/08 22:33:33 thorpej Exp $       */
+/*     $NetBSD: gtmpsc.c,v 1.7 2003/05/01 12:13:26 scw Exp $   */
 
 /*
  * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@@ -1172,6 +1172,14 @@
                gt_reva_gtmpsc_bug = r == ~0;
                sdma_imask = 0;
        }
+
+       /*
+        * If Rx is disabled, we don't need to wait around for
+        * abort completion.
+        */
+       if ((GT_READ(sc, GTMPSC_U_MMCR_LO(unit)) & GTMPSC_MMCR_LO_ER) == 0)
+               return;
+
        /*
         * poll for GTMPSC RX abort completion
         */



Home | Main Index | Thread Index | Old Index