linux-uconsole/arch/arm/common
Marek Vašut f26a43c5a1 ARM: 6146/1: sa1111: Prevent deadlock in resume path
commit 3defb24761 upstream.

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>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-07-05 11:10:52 -07:00
..
clkdev.c ARM: 5639/1: arm: clkdev.c should include <linux/clk.h> 2009-08-05 22:06:58 +01:00
dmabounce.c [ARM] make page_to_dma() highmem aware 2009-03-15 21:01:21 -04:00
gic.c [ARM] 5556/1: Fix the irq_desc.cpu references 2009-06-19 15:11:16 +01:00
icst307.c [ARM] Off-by-one in arch/arm/common/icst* 2006-09-27 23:17:54 +01:00
icst525.c [ARM] Off-by-one in arch/arm/common/icst* 2006-09-27 23:17:54 +01:00
it8152.c [ARM] 5298/1: Drop desc_handle_irq() 2008-10-09 15:00:36 +01:00
Kconfig Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel 2009-06-14 11:00:16 +01:00
locomo.c ARM: 5711/1: locomo.c: CodingStyle cleanups 2009-09-21 16:03:04 +01:00
Makefile [ARM] pxa/sharpsl_pm: merge the two sharpsl_pm.c since it's now pxa specific 2009-06-11 22:20:22 +08:00
sa1111.c ARM: 6146/1: sa1111: Prevent deadlock in resume path 2010-07-05 11:10:52 -07:00
scoop.c [ARM] 5431/1: scoop: completely drop old-style SCOOP GPIO accessors 2009-03-25 10:13:57 +00:00
sharpsl_param.c [ARM] 4733/1: export sharpsl_param 2008-10-03 10:18:35 +01:00
time-acorn.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
uengine.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
via82c505.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
vic.c ARM: 5696/1: Include device.h in VIC driver 2009-09-15 22:06:03 +01:00