When initializing the (unused) TX descriptors it is not necessary set the

chain bit.

Obtained from:	NetBSD
This commit is contained in:
Luiz Otavio O Souza 2015-07-06 17:13:17 +00:00
parent ff0752c870
commit 1d7a730974
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285211

View File

@ -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));
}