summaryrefslogtreecommitdiffstats
path: root/drivers/dma/sh
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-07-02 13:52:07 +0530
committerVinod Koul <vinod.koul@linux.intel.com>2012-07-13 08:49:54 +0530
commit4a46ba36e25dcff1d30eb1681135c3c10af71c16 (patch)
tree8003546e61cd4337b5f27001bab7854cefcfe8bc /drivers/dma/sh
parent46fb3f8ef5bde1325b1e58867a3a98dd746511d7 (diff)
downloadop-kernel-dev-4a46ba36e25dcff1d30eb1681135c3c10af71c16.zip
op-kernel-dev-4a46ba36e25dcff1d30eb1681135c3c10af71c16.tar.gz
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>
Diffstat (limited to 'drivers/dma/sh')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud