DMAEngine: sirf: lock the shared registers access in sirfsoc_dma_terminate_all
authorBarry Song <Baohua.Song@csr.com>
Fri, 14 Dec 2012 11:06:58 +0000 (11:06 +0000)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Jan 2013 09:44:46 +0000 (01:44 -0800)
commit2b99c2592167eb1043e16d1e7187afdc7c940a41
treeafeb11ea46e527befcd07b956596ea8cf8c18585
parent2518d1d1fc0ba7ef781bac97132bcfd6d7466c4b
DMAEngine: sirf: lock the shared registers access in sirfsoc_dma_terminate_all

Just like Russell pointed out in "DMAEngine: sirf: add DMA
pause/resume support" at
http://www.spinics.net/lists/arm-kernel/msg212496.html
here I find sirfsoc_dma_terminate_all() has same problem,
so move the locking to the front of registers access.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c