]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
dma: tegra: fix residual calculation for cyclic case
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 2 Jul 2012 08:22:07 +0000 (13:52 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 13 Jul 2012 03:19:54 +0000 (08:49 +0530)
commit4a46ba36e25dcff1d30eb1681135c3c10af71c16
tree8003546e61cd4337b5f27001bab7854cefcfe8bc
parent46fb3f8ef5bde1325b1e58867a3a98dd746511d7
dma: tegra: fix residual calculation for cyclic case

In cyclic mode of DMA, the byte transferred can be more
than the requested size and in this case, calculating
residuals based on the current position of DMA transfer to
bytes requested i.e. bytes required to transfer to reach
bytes requested from current DMA position.

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>
drivers/dma/tegra20-apb-dma.c