diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-06-22 15:11:10 (GMT) |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-06-27 13:31:52 (GMT) |
commit | 597c854974db20eebe87e91df0d12daaefabf525 (patch) | |
tree | fc0c16b153cbfbfae9ef98f3ef485c1ba13f76f9 /drivers/dma/tegra20-apb-dma.c | |
parent | 49d57b5e588ce511bd826f5759aa2aebf322626b (diff) | |
download | linux-597c854974db20eebe87e91df0d12daaefabf525.tar.xz |
dma: tegra: use sg_dma_address() for getting dma buffer address
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>
Diffstat (limited to 'drivers/dma/tegra20-apb-dma.c')
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 134ea7c..6d7d5d3 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c @@ -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) || |