diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-10-16 19:18:52 +0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-10-25 09:46:05 +0400 |
commit | 2f16f802c3ac9df779096e56f43668e1c8e90c68 (patch) | |
tree | ebb187da2da552a70f03aa84b9681636d499cd7a /drivers/dma/ioat/dma.c | |
parent | 94e4c120c7661ff028be6337b05037bb1f153855 (diff) | |
download | linux-2f16f802c3ac9df779096e56f43668e1c8e90c68.tar.xz |
dmaengine: ioat: 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/ioat/dma.c')
-rw-r--r-- | drivers/dma/ioat/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c index 5ff6fc1819dc..a0f0fce5a84e 100644 --- a/drivers/dma/ioat/dma.c +++ b/drivers/dma/ioat/dma.c @@ -733,7 +733,7 @@ ioat_dma_tx_status(struct dma_chan *c, dma_cookie_t cookie, enum dma_status ret; ret = dma_cookie_status(c, cookie, txstate); - if (ret == DMA_SUCCESS) + if (ret == DMA_COMPLETE) return ret; device->cleanup_fn((unsigned long) c); @@ -859,7 +859,7 @@ int ioat_dma_self_test(struct ioatdma_device *device) if (tmo == 0 || dma->device_tx_status(dma_chan, cookie, NULL) - != DMA_SUCCESS) { + != DMA_COMPLETE) { dev_err(dev, "Self-test copy timed out, disabling\n"); err = -ENODEV; goto unmap_dma; |