qcacmn: Assign DMA address correctly to all scatterlist elements
Assign DMA address correctly to all scatterlist elements of scatter gather table in qdf_mem_shared_mem_alloc() func. Change-Id: I07988d0bc35e3e0fcf7b9f6df02a9e56a0e8b083 CRS-Fixed: 2110715
这个提交包含在:
@@ -266,6 +266,22 @@ __qdf_os_mem_dma_get_sgtable(struct device *dev, void *sgt, void *cpu_addr,
|
||||
size);
|
||||
}
|
||||
|
||||
/**
|
||||
* __qdf_dma_get_sgtable_dma_addr()-Assigns DMA address to scatterlist elements
|
||||
* @sgt: scatter gather table pointer
|
||||
*
|
||||
* @Return: None
|
||||
*/
|
||||
static inline void
|
||||
__qdf_dma_get_sgtable_dma_addr(struct sg_table *sgt)
|
||||
{
|
||||
struct scatterlist *sg;
|
||||
int i;
|
||||
|
||||
for_each_sg(sgt->sgl, sg, sgt->nents, i)
|
||||
sg->dma_address = sg_phys(sg);
|
||||
}
|
||||
|
||||
/**
|
||||
* __qdf_mem_get_dma_addr() - Return dma addr based on SMMU translation status
|
||||
* @osdev: parent device instance
|
||||
|
在新工单中引用
屏蔽一个用户