Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03269c65 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville
Browse files

wil6210: Optimize Tx completion



No need to modify HW descriptor, as it will be re-initialized on Tx.

Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4d1ac072
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -855,10 +855,12 @@ int wil_tx_complete(struct wil6210_priv *wil, int ringid)
		} else {
			dma_unmap_page(dev, pa, dmalen, DMA_TO_DEVICE);
		}
		d->dma.addr.addr_low = 0;
		d->dma.addr.addr_high = 0;
		d->dma.length = 0;
		d->dma.status = TX_DMA_STATUS_DU;
		/*
		 * There is no need to touch HW descriptor:
		 * - ststus bit TX_DMA_STATUS_DU is set by design,
		 *   so hardware will not try to process this desc.,
		 * - rest of descriptor will be initialized on Tx.
		 */
		vring->swtail = wil_vring_next_tail(vring);
		done++;
	}