dmaengine: imx-sdma: fix pagefault when channel is disabled during interrupt
authorThierry Bultel <tbultel@pixelsurmer.com>
Mon, 5 Mar 2018 13:27:18 +0000 (14:27 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 5 Mar 2018 14:03:47 +0000 (19:33 +0530)
commit2746e2c389f9d50043d21e2204270403efb9d62f
tree3004e9ec5637564c18bb3a8841ae52ba73949ef3
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
dmaengine: imx-sdma: fix pagefault when channel is disabled during interrupt

Add a spinlock and a 'enabled' boolean on channel descriptor, to avoid
using buffer descriptors in the interrupt context,
when sdma_disable_channel is called meanwhile.

Signed-off-by: Thierry Bultel <tbultel@pixelsurmer.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c