]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6bb721bf1783f5f32d258056e7622c5efbe74f8
treee2c2d62ca4cd31bbe5031d798f88a4abebf4117d
parent5da55e40846a1b535993e340492c49a0084ac8c1
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