lkml.org 
[lkml]   [2010]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
FromMarek Vasut <>
SubjectRe: [PATCH 7/17] arch/arm/common: Add missing spin_unlock_irqrestore
DateWed, 26 May 2010 21:13:37 +0200
Dne St 26. května 2010 20:43:58 Russell King - ARM Linux napsal(a):
> 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().

Russell, Julia, check the patch I posted. Comments are welcome.

btw. Russell, killing the spinlock in resume might be overkill. If there was any
reason for that being there, it was for the write ops so I'd rather keep those
locked. Anyone with actual hardware available should look into that though.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-05-26 21:17    [from the cache]
©2003-2010