qcacld-3.0: Use dma_sync_single_for_cpu instead of dmac_inv_range

dmac_inv_range() is obsolete, use dma_sync_single_for_cpu instead.
https://www.kernel.org/doc/Documentation/DMA-API-HOWTO.txt.

Change-Id: I8add3c905d3cf190ef91ec023c88a7a645ae92e6
CRs-Fixed: 2216859
This commit is contained in:
Manjunathappa Prakash
2018-03-20 21:40:59 -07:00
committed by nshrivas
父節點 380c42b4db
當前提交 92a860057d

查看文件

@@ -1295,6 +1295,7 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
struct htt_host_rx_desc_base *rx_desc;
uint8_t *rx_ind_data;
uint32_t *msg_word, num_msdu_bytes;
qdf_dma_addr_t rx_desc_paddr;
enum htt_t2h_msg_type msg_type;
uint8_t pad_bytes = 0;
@@ -1342,13 +1343,14 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
if (HTT_WIFI_IP(pdev, 2, 0))
pad_bytes = rx_desc->msdu_end.l3_header_padding;
#endif /* defined(HELIUMPLUS) */
/*
* Make the netbuf's data pointer point to the payload rather
* than the descriptor.
*/
qdf_nbuf_pull_head(msdu,
HTT_RX_STD_DESC_RESERVATION + pad_bytes);
/*
* Save PADDR of descriptor and make the netbuf's data pointer
* point to the payload rather than the descriptor.
*/
rx_desc_paddr = QDF_NBUF_CB_PADDR(msdu);
qdf_nbuf_pull_head(msdu, HTT_RX_STD_DESC_RESERVATION +
pad_bytes);
/*
* Sanity check - confirm the HW is finished filling in
@@ -1372,10 +1374,11 @@ htt_rx_amsdu_pop_ll(htt_pdev_handle pdev,
(!((*(uint32_t *) &rx_desc->attention) &
RX_ATTENTION_0_MSDU_DONE_MASK))) {
qdf_mdelay(1);
qdf_invalidate_range((void *)rx_desc,
(void *)((char *)rx_desc +
HTT_RX_STD_DESC_RESERVATION));
qdf_mem_dma_sync_single_for_cpu(
pdev->osdev,
rx_desc_paddr,
HTT_RX_STD_DESC_RESERVATION,
DMA_FROM_DEVICE);
QDF_TRACE(QDF_MODULE_ID_HTT,
QDF_TRACE_LEVEL_INFO,