aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>2019-04-19 17:57:24 +0900
committerRyo Kataoka <ryo.kataoka.wt@renesas.com>2019-07-11 21:15:18 +0900
commitc5606c6416b587e3e5299e8140443369fa182116 (patch)
tree052c13964cffeb1ca888b1d0d3e75d9201a81f4a
parent9aa6649bb252b987708de0d2eba078ad3ef7aff4 (diff)
downloadrenesas-bsp-c5606c6416b587e3e5299e8140443369fa182116.tar.gz
Revert "dmaengine: sh: rcar-dmac: With cyclic DMA residue 0 is valid"
This reverts commit 0c7a66e6849d205d4443ee7d8bdd39c43e0e36e1. Link: https://patchwork.kernel.org/patch/10839055/ It included NULL access problem, therefore revert it. Signed-off-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
-rw-r--r--drivers/dma/sh/rcar-dmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c
index 979efc62cca6e..480532d72b0f6 100644
--- a/drivers/dma/sh/rcar-dmac.c
+++ b/drivers/dma/sh/rcar-dmac.c
@@ -1407,7 +1407,7 @@ static enum dma_status rcar_dmac_tx_status(struct dma_chan *chan,
spin_unlock_irqrestore(&rchan->lock, flags);
/* if there's no residue, the cookie is complete */
- if (!residue && !rchan->desc.running->cyclic)
+ if (!residue)
return DMA_COMPLETE;
dma_set_residue(txstate, residue);