[PATCH] powerpc/mpc5200: Fix locking on mpc52xx_spi driver

Daniel Walker dwalker at mvista.com
Sat Jul 26 22:35:50 EST 2008


On Sat, 2008-07-26 at 02:24 -0400, Grant Likely wrote:
> From: Grant Likely <grant.likely at secretlab.ca>
> 
> Locking was incorrect for the state machine processing since there are
> conditions where both the work queue and the IRQ can be active.  This
> patch fixes the handling to ensure the spin lock is held whenever the
> state machine is being processed.
> 
> Signed-off-by: Grant Likely <grant.likely at secretlab.ca>
> ---
> 
> Hi Daniel,
> 
> Here is the incremental change to the mpc52xx_spi driver to fix up the
> locking.  It should be safe and unambiguous now.


Thank you, it looks much better..

Daniel




More information about the Linuxppc-dev mailing list