MLK-20598 dmaengine: imx-sdma: fix potential system hang
authorRobin Gong <yibin.gong@nxp.com>
Mon, 17 Dec 2018 14:34:13 +0000 (22:34 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:28 +0000 (11:35 +0300)
commit528ed1bf9667716fcb5ee3eb356e4564b7032308
tree922dd842a494b46135dc1bcdca7b66bde7938678
parent46c4404a6421cd5ed1aadf41fae38d9e238badeb
MLK-20598 dmaengine: imx-sdma: fix potential system hang

In multi audio play/stop case,sdma_alloc_chan_resources/
sdma_free_chan_resources will be called quickly, especially,dma done
interrupt comes after sdma_free_chan_resources, thus, system will be
hang in interrupt since it'll check sdma register but clocks have
already been disabled in sdma_free_chan_resources. To avoid it, enable
clock in isr.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 09b55a84522fbf404d6cd82b4640a93672c2aa27)
drivers/dma/imx-sdma.c