dmaengine: rcar-dmac: clear channel register when error
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 3 Jul 2018 00:29:29 +0000 (00:29 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 9 Jul 2018 16:52:32 +0000 (22:22 +0530)
commite919417bd6468b7f1b2899200a78f1ad078757d3
treee2c2d62ca4cd31bbe5031d798f88a4abebf4117d
parent45c9a603a4dfde06f53446ce1db218958442849b
dmaengine: rcar-dmac: clear channel register when error

We need to clear channel register in error case as recovery.
The channel is already stopped in such case, thus we don't need to call
rcar_dmac_chan_halt() before clearing.

rcar_dmac_chan_halt() will clear and confirm DE bit.
But it will be failed because channel is already stopped in error case.
In other words, we shouldn't call it then.

Reported-by: Hiroki Negishi <hiroki.negishi.bx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Hiroki Negishi <hiroki.negishi.bx@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rcar-dmac.c