When initializing the (unused) TX descriptors it is not necessary set the
chain bit. Obtained from: NetBSD
This commit is contained in:
parent
ff0752c870
commit
1d7a730974
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user