diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-10-16 11:34:50 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-10-25 01:46:16 -0400 |
commit | 00d696f5291a6c749511b0f3c884c5f6d00f7339 (patch) | |
tree | ef9776d9d24223156a174bce6391a731c7415e36 /drivers/dma/tegra20-apb-dma.c | |
parent | e2360adb4a75a0cd05a7481219b2d7318a062ce7 (diff) |
dmaengine: tegra: 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/tegra20-apb-dma.c')
-rw-r--r-- | drivers/dma/tegra20-apb-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 67a6752bf863..73654e33f13b 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c | |||
@@ -570,7 +570,7 @@ static void handle_once_dma_done(struct tegra_dma_channel *tdc, | |||
570 | 570 | ||
571 | list_del(&sgreq->node); | 571 | list_del(&sgreq->node); |
572 | if (sgreq->last_sg) { | 572 | if (sgreq->last_sg) { |
573 | dma_desc->dma_status = DMA_SUCCESS; | 573 | dma_desc->dma_status = DMA_COMPLETE; |
574 | dma_cookie_complete(&dma_desc->txd); | 574 | dma_cookie_complete(&dma_desc->txd); |
575 | if (!dma_desc->cb_count) | 575 | if (!dma_desc->cb_count) |
576 | list_add_tail(&dma_desc->cb_node, &tdc->cb_desc); | 576 | list_add_tail(&dma_desc->cb_node, &tdc->cb_desc); |
@@ -768,7 +768,7 @@ static enum dma_status tegra_dma_tx_status(struct dma_chan *dc, | |||
768 | unsigned int residual; | 768 | unsigned int residual; |
769 | 769 | ||
770 | ret = dma_cookie_status(dc, cookie, txstate); | 770 | ret = dma_cookie_status(dc, cookie, txstate); |
771 | if (ret == DMA_SUCCESS) | 771 | if (ret == DMA_COMPLETE) |
772 | return ret; | 772 | return ret; |
773 | 773 | ||
774 | spin_lock_irqsave(&tdc->lock, flags); | 774 | spin_lock_irqsave(&tdc->lock, flags); |