dmaengine: fsl-edma: fix calculation of remaining bytes
authorStefan Agner <stefan@agner.ch>
Thu, 13 Nov 2014 11:56:02 +0000 (12:56 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 8 Dec 2014 13:13:44 +0000 (18:43 +0530)
commit6ab55b214c625f4d56199f7ebd0b419f43f23bb2
tree9e39cfa4e87e89e9f68be04702b3eb261b76f742
parent345e3123d112600b55f1d43124f2e977ee83d0cc
dmaengine: fsl-edma: fix calculation of remaining bytes

If the current transfer control descriptor (TCD) was not yet started,
the address will be the same as the initial address. Hence test if the
current address is less than or equal to the start address of each TCD.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/fsl-edma.c
This page took 0.02467 seconds and 5 git commands to generate.