mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
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 <[email protected]> 2) The function didn't unlock the spinlock in case the chip didn't report correct ID. Original idea for this part: Julia Lawall <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Cc: <[email protected]> Signed-off-by: Russell King <[email protected]>