Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2013 15:57:55 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250408 - head/sys/dev/ath
Message-ID:  <201305091557.r49FvtEr029022@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu May  9 15:57:55 2013
New Revision: 250408
URL: http://svnweb.freebsd.org/changeset/base/250408

Log:
  Update the holding buffer locking for EDMA.

Modified:
  head/sys/dev/ath/if_ath_tx_edma.c

Modified: head/sys/dev/ath/if_ath_tx_edma.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx_edma.c	Thu May  9 14:43:36 2013	(r250407)
+++ head/sys/dev/ath/if_ath_tx_edma.c	Thu May  9 15:57:55 2013	(r250408)
@@ -409,7 +409,7 @@ ath_edma_xmit_handoff_mcast(struct ath_s
 		wh = mtod(bf_last->bf_m, struct ieee80211_frame *);
 		wh->i_fc[1] |= IEEE80211_FC1_MORE_DATA;
 
-		/* sync descriptor to memory */
+		/* re-sync buffer to memory */
 		bus_dmamap_sync(sc->sc_dmat, bf_last->bf_dmamap,
 		   BUS_DMASYNC_PREWRITE);
 
@@ -734,9 +734,9 @@ ath_edma_tx_processq(struct ath_softc *s
 		 * buffer any longer.
 		 */
 		if (bf->bf_flags & ATH_BUF_FIFOEND) {
-			ATH_TXBUF_LOCK(sc);
+			ATH_TXQ_LOCK(txq);
 			ath_txq_freeholdingbuf(sc, txq);
-			ATH_TXBUF_UNLOCK(sc);
+			ATH_TXQ_UNLOCK(txq);
 		}
 
 		/*



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