Skip to content

Commit

Permalink
dma: tegra: use sg_dma_address() for getting dma buffer address
Browse files Browse the repository at this point in the history
Use the sg_dma_address() to get the segment buffer address for
DMA transfer in place of sg_phys() which returns the physical
address of an sg entry.
The sg_dma_address() returns the correct buffer memory address
for DMA transfer.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
  • Loading branch information
Laxman Dewangan authored and Vinod Koul committed Jun 27, 2012
1 parent 49d57b5 commit 597c854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/tegra20-apb-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_slave_sg(
for_each_sg(sgl, sg, sg_len, i) {
u32 len, mem;

mem = sg_phys(sg);
mem = sg_dma_address(sg);
len = sg_dma_len(sg);

if ((len & 3) || (mem & 3) ||
Expand Down

0 comments on commit 597c854

Please sign in to comment.