From: Vladimir Kondratiev Date: Thu, 11 Jul 2013 15:03:39 +0000 (+0300) Subject: wil6210: Optimize Tx completion X-Git-Tag: MMI-PSA29.97-13-9~13299^2~225^2~25^2~164 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03269c658b7a2f6ccfa44d7270da8446881f9552;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git wil6210: Optimize Tx completion No need to modify HW descriptor, as it will be re-initialized on Tx. Signed-off-by: Vladimir Kondratiev Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index 8fde73aa6198..dd5f35eb64b4 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -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++; }