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)
commitedf10919e5fc8dfd10e57ed72f651204559bc6ba
tree29c938ba46a6352433f884d05f36192eaa696a26
parentd9ec46416de5ef83220f1c7010ee0f5d1be1d753
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