]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8cc18600b2e282bbf7145e70cbcca1e80d820c6
tree3004e9ec5637564c18bb3a8841ae52ba73949ef3
parentbcac507057f6668c45308343ba41f4c91a086136
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