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)
commita5b21a8ba2a0d6ab114b8ca9c8423e84f47844b1
treece3dd900f30e11aa6cbab40c880e9ad87ededd74
parent651022382c7f8da46cb4872a545ee1da6d097d2a
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