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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285211
@ -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…
Reference in New Issue
Block a user