Skip to contentSkip to conversation

dmaengine: rcar-dmac: clear channel register when error

PATCH New Vinod Koul 1 participant 1 message Jul 9, 2018 dmaengine

lore
Share & tools
lore

Vinod Koul

author maintainer Applied
#0 lore raw

PATCH v3 1/1 dmaengine: rcar-dmac: clear channel register when error

Quoted 10 lines · Kuninori Morimoto

From: Kuninori Morimoto <[email protected]>

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.

Applied, thanks