]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: zynqmp_dma: replace spin_lock_bh with spin_lock_irqsave
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 26 Nov 2018 15:14:25 +0000 (16:14 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 5 Dec 2018 09:07:32 +0000 (14:37 +0530)
commitcdf8d7fdfe840c547189b79249f4b9aef1b67974
treece3dd900f30e11aa6cbab40c880e9ad87ededd74
parenta9e80a095d95d1159b26f73bd6d9c2fadc7fb411
dmaengine: zynqmp_dma: replace spin_lock_bh with spin_lock_irqsave

All device_prep_dma_* functions and device_issue_pending can be called
from an interrupt context. As this includes hard IRQs, we must use
spin_lock_irqsave() instead of spin_lock_bh() to access chan->lock.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c