summaryrefslogtreecommitdiff
path: root/drivers/dma/stm32-mdma.c
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2021-12-15 13:01:15 +0200
committerVinod Koul <vkoul@kernel.org>2022-01-05 15:50:04 +0530
commite77e561925df2faf77a41896df24a59141a445c9 (patch)
tree34a2df65e8a8b362d6511907f9bf74a092b1c492 /drivers/dma/stm32-mdma.c
parenta61210cae80cac0701d5aca9551466a389717fd2 (diff)
dmaengine: at_xdmac: Fix race over irq_status
Tasklets run with interrupts enabled, so we need to protect atchan->irq_status with spin_lock_irq() otherwise the tasklet can be interrupted by the IRQ that modifies irq_status. Move the dev_dbg that prints the irq_status in at_xdmac_handle_cyclic() and lower in at_xdmac_tasklet() where the IRQ is disabled. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20211215110115.191749-13-tudor.ambarus@microchip.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/stm32-mdma.c')
0 files changed, 0 insertions, 0 deletions