dmaengine: pl330: Handle xferred count if DMAMOV hasn't finished
authorStephen Barber <smbarber@chromium.org>
Tue, 1 Nov 2016 23:44:27 +0000 (16:44 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 14 Nov 2016 05:00:06 +0000 (10:30 +0530)
commitc44da03dd517c11c2b3525937b0a241fc1c69399
treea20a9a2e69c0dfc232978911ee4ff480aeb8729c
parent9a1a34f3c8612864f18a71febc134957a03eca64
dmaengine: pl330: Handle xferred count if DMAMOV hasn't finished

After executing DMAGO it's possible that a request can come in for the
current xferred count, but if that happens too soon then DMAMOV SAR/DAR
may not have yet completed. If that happens, we should explicitly return 0
since nothing has been transferred yet.

Signed-off-by: Stephen Barber <smbarber@chromium.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c