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));
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to