svn commit: r285211 - head/sys/dev/dwc

Luiz Otavio O Souza loos at FreeBSD.org
Mon Jul 6 17:13:20 UTC 2015


Author: loos
Date: Mon Jul  6 17:13:17 2015
New Revision: 285211
URL: https://svnweb.freebsd.org/changeset/base/285211

Log:
  When initializing the (unused) TX descriptors it is not necessary set the
  chain bit.
  
  Obtained from:	NetBSD

Modified:
  head/sys/dev/dwc/if_dwc.c

Modified: head/sys/dev/dwc/if_dwc.c
==============================================================================
--- head/sys/dev/dwc/if_dwc.c	Mon Jul  6 16:50:19 2015	(r285210)
+++ head/sys/dev/dwc/if_dwc.c	Mon Jul  6 17:13:17 2015	(r285211)
@@ -898,10 +898,8 @@ setup_dma(struct dwc_softc *sc)
 	}
 
 	for (idx = 0; idx < TX_DESC_COUNT; idx++) {
-		sc->txdesc_ring[idx].tdes0 = DDESC_TDES0_TXCHAIN;
-		sc->txdesc_ring[idx].tdes1 = 0;
 		nidx = next_txidx(sc, idx);
-		sc->txdesc_ring[idx].addr_next = sc->txdesc_ring_paddr + \
+		sc->txdesc_ring[idx].addr_next = sc->txdesc_ring_paddr +
 		    (nidx * sizeof(struct dwc_hwdesc));
 	}
 


More information about the svn-src-head mailing list