dmaengine: amba-pl08x: use DMA_COMPLETE for dma completion status
authorVinod Koul <vinod.koul@intel.com>
Wed, 16 Oct 2013 08:03:02 +0000 (13:33 +0530)
committerVinod Koul <vinod.koul@intel.com>
Fri, 25 Oct 2013 05:45:54 +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/amba-pl08x.c

index 9b5025777ac8dab6fd88eea75b65181a08a05ea6..4ee6533108f6265f792cd501b431ce140c040f7e 100644 (file)
@@ -1252,7 +1252,7 @@ static enum dma_status pl08x_dma_tx_status(struct dma_chan *chan,
        size_t bytes = 0;
 
        ret = dma_cookie_status(chan, cookie, txstate);
-       if (ret == DMA_SUCCESS)
+       if (ret == DMA_COMPLETE)
                return ret;
 
        /*
@@ -1267,7 +1267,7 @@ static enum dma_status pl08x_dma_tx_status(struct dma_chan *chan,
 
        spin_lock_irqsave(&plchan->vc.lock, flags);
        ret = dma_cookie_status(chan, cookie, txstate);
-       if (ret != DMA_SUCCESS) {
+       if (ret != DMA_COMPLETE) {
                vd = vchan_find_desc(&plchan->vc, cookie);
                if (vd) {
                        /* On the issued list, so hasn't been processed yet */
This page took 0.025979 seconds and 5 git commands to generate.