MLK-15014 dma: fsl-edma-v3: clear DONE before E_SG enabled
authorRobin Gong <yibin.gong@nxp.com>
Tue, 6 Jun 2017 08:56:49 +0000 (16:56 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:34 +0000 (15:22 -0500)
commit26a5b441eea3a7c8ab48d19d00614f5a6869e4e6
treeabdf8a1cec03b65ef132b61b748d48e5fdeb69a2
parentda97e32641c9c4e99a8aaa24b7afb3b762e39dbe
MLK-15014 dma: fsl-edma-v3: clear DONE before E_SG enabled

Below described in RM, otherwise, channel error status(CHa_ES)
may be triggered:
The user must clear the CHa_CSR[DONE] bit before writing the
TCDa_CSR[MAJORELINK] or TCDa_CSR[ESG] bits.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
drivers/dma/fsl-edma-v3.c