Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2008 02:21:50 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185244 - head/sys/dev/msk
Message-ID:  <200811240221.mAO2LoTY071230@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Nov 24 02:21:50 2008
New Revision: 185244
URL: http://svn.freebsd.org/changeset/base/185244

Log:
  Save the value read from TX queue CSR, so we don't test against a
  stale one.
  
  Submitted by:	sephe

Modified:
  head/sys/dev/msk/if_msk.c

Modified: head/sys/dev/msk/if_msk.c
==============================================================================
--- head/sys/dev/msk/if_msk.c	Mon Nov 24 01:34:56 2008	(r185243)
+++ head/sys/dev/msk/if_msk.c	Mon Nov 24 02:21:50 2008	(r185244)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811240221.mAO2LoTY071230>