[PATCH] sa1111: Prevent deadlock in resume path
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed May 26 15:14:25 EDT 2010
On Wed, May 26, 2010 at 09:11:44PM +0200, Marek Vasut wrote:
> 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 <linux at 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 at diku.dk>
>
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
Yea, good enough.
More information about the linux-arm-kernel
mailing list