aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/mv_xor.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2013-10-16 11:21:04 -0400
committerVinod Koul <vinod.koul@intel.com>2013-10-25 01:46:09 -0400
commitb3efb8fc9a7e90fb0affbea8dca0f75b21141229 (patch)
tree53dcac0a837e56d556cd5acc8ffdae22c927887d /drivers/dma/mv_xor.c
parentf64eabd0b771851f4716ddc98680e09ed9e5775e (diff)
dmaengine: mv_xor: use DMA_COMPLETE for dma completion status
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>
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r--drivers/dma/mv_xor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 536dcb8ba5fd..8d5bce9e867e 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -749,7 +749,7 @@ static enum dma_status mv_xor_status(struct dma_chan *chan,
749 enum dma_status ret; 749 enum dma_status ret;
750 750
751 ret = dma_cookie_status(chan, cookie, txstate); 751 ret = dma_cookie_status(chan, cookie, txstate);
752 if (ret == DMA_SUCCESS) { 752 if (ret == DMA_COMPLETE) {
753 mv_xor_clean_completed_slots(mv_chan); 753 mv_xor_clean_completed_slots(mv_chan);
754 return ret; 754 return ret;
755 } 755 }
@@ -874,7 +874,7 @@ static int mv_xor_memcpy_self_test(struct mv_xor_chan *mv_chan)
874 msleep(1); 874 msleep(1);
875 875
876 if (mv_xor_status(dma_chan, cookie, NULL) != 876 if (mv_xor_status(dma_chan, cookie, NULL) !=
877 DMA_SUCCESS) { 877 DMA_COMPLETE) {
878 dev_err(dma_chan->device->dev, 878 dev_err(dma_chan->device->dev,
879 "Self-test copy timed out, disabling\n"); 879 "Self-test copy timed out, disabling\n");
880 err = -ENODEV; 880 err = -ENODEV;
@@ -968,7 +968,7 @@ mv_xor_xor_self_test(struct mv_xor_chan *mv_chan)
968 msleep(8); 968 msleep(8);
969 969
970 if (mv_xor_status(dma_chan, cookie, NULL) != 970 if (mv_xor_status(dma_chan, cookie, NULL) !=
971 DMA_SUCCESS) { 971 DMA_COMPLETE) {
972 dev_err(dma_chan->device->dev, 972 dev_err(dma_chan->device->dev,
973 "Self-test xor timed out, disabling\n"); 973 "Self-test xor timed out, disabling\n");
974 err = -ENODEV; 974 err = -ENODEV;