From owner-svn-src-all@FreeBSD.ORG Mon Nov 24 02:21:50 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9D1B1065670; Mon, 24 Nov 2008 02:21:50 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A3C5E8FC0A; Mon, 24 Nov 2008 02:21:50 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mAO2LoFu071231; Mon, 24 Nov 2008 02:21:50 GMT (envelope-from yongari@svn.freebsd.org) Received: (from yongari@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAO2LoTY071230; Mon, 24 Nov 2008 02:21:50 GMT (envelope-from yongari@svn.freebsd.org) Message-Id: <200811240221.mAO2LoTY071230@svn.freebsd.org> From: Pyun YongHyeon Date: Mon, 24 Nov 2008 02:21:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185244 - head/sys/dev/msk X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 02:21:50 -0000 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);