summaryrefslogtreecommitdiffstats
path: root/arch/mn10300
diff options
context:
space:
mode:
authorMarek VaĊĦut <marek.vasut@gmail.com>2010-05-27 00:53:09 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-27 11:36:08 +0200
commit3defb2476166445982a90c12d33f8947e75476c4 (patch)
treefb5b7b157f741cf2cfcc7436c5d70bd5ae7f53a7 /arch/mn10300
parentARM: 6145/1: ux500 MTU clockrate correction (diff)
downloadlinux-3defb2476166445982a90c12d33f8947e75476c4.tar.xz
linux-3defb2476166445982a90c12d33f8947e75476c4.zip
ARM: 6146/1: sa1111: Prevent deadlock in resume path
This patch reorganises the sa1111_resume() function in a manner the spinlock happens after calling the sa1111_wake(). This fixes two bugs: 1) This function called sa1111_wake() which tried to claim the same spinlock the sa1111_resume() already claimed. This would result in certain deadlock. Original idea for this part: Russell King <rmk+kernel@arm.linux.org.uk> 2) The function didn't unlock the spinlock in case the chip didn't report correct ID. Original idea for this part: Julia Lawall <julia@diku.dk> Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: <stable@kernel.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/mn10300')
0 files changed, 0 insertions, 0 deletions