From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Wed, 26 May 2010 19:43:58 +0100 Subject: [PATCH 7/17] arch/arm/common: Add missing spin_unlock_irqrestore In-Reply-To: <201005261907.06198.marek.vasut@gmail.com> References: <201005261907.06198.marek.vasut@gmail.com> Message-ID: <20100526184358.GC6232@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, May 26, 2010 at 07:07:06PM +0200, Marek Vasut wrote: > Why are "readl"s protected by spinlock anyway ? Can't we just move the locking > past the code above ? Good question - and there seems to be a deadlock waiting to happen - sa1111_wake() re-takes the same lock. I think we should kill all the spinlock in sa1111_resume().