dmaengine: cppi41: use DMA_COMPLETE for dma completion status
authorVinod Koul <vinod.koul@intel.com>
Wed, 16 Oct 2013 08:06:28 +0000 (13:36 +0530)
committerVinod Koul <vinod.koul@intel.com>
Fri, 25 Oct 2013 05:45:57 +0000 (11:15 +0530)
Acked-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c

index 167c0223ae9e06e45e90d2fa9dc360065d8ab78f..278b3058919a9f9de2fbc113d221d0f835c249a2 100644 (file)
@@ -353,7 +353,7 @@ static enum dma_status cppi41_dma_tx_status(struct dma_chan *chan,
 
        /* lock */
        ret = dma_cookie_status(chan, cookie, txstate);
-       if (txstate && ret == DMA_SUCCESS)
+       if (txstate && ret == DMA_COMPLETE)
                txstate->residue = c->residue;
        /* unlock */