mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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>
This commit is contained in:
parent
e2360adb4a
commit
00d696f529
1 changed files with 2 additions and 2 deletions
|
@ -570,7 +570,7 @@ static void handle_once_dma_done(struct tegra_dma_channel *tdc,
|
|||
|
||||
list_del(&sgreq->node);
|
||||
if (sgreq->last_sg) {
|
||||
dma_desc->dma_status = DMA_SUCCESS;
|
||||
dma_desc->dma_status = DMA_COMPLETE;
|
||||
dma_cookie_complete(&dma_desc->txd);
|
||||
if (!dma_desc->cb_count)
|
||||
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,
|
|||
unsigned int residual;
|
||||
|
||||
ret = dma_cookie_status(dc, cookie, txstate);
|
||||
if (ret == DMA_SUCCESS)
|
||||
if (ret == DMA_COMPLETE)
|
||||
return ret;
|
||||
|
||||
spin_lock_irqsave(&tdc->lock, flags);
|
||||
|
|
Loading…
Reference in a new issue