]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: altera: fix spinlock usage
authorSylvain Lesne <lesne@alse-fr.com>
Mon, 18 Sep 2017 11:08:01 +0000 (13:08 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 28 Sep 2017 07:41:46 +0000 (13:11 +0530)
commit35e39723ab34f4fed677ac4e6076a2530250c873
tree29c938ba46a6352433f884d05f36192eaa696a26
parentd244c76612a6d325f59986040ee35239fab3d89f
dmaengine: altera: fix spinlock usage

Since this lock is acquired in both process and IRQ context, failing to
to disable IRQs when trying to acquire the lock in process context can
lead to deadlocks.

Signed-off-by: Sylvain Lesne <lesne@alse-fr.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/altera-msgdma.c