From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway-1237.mvista.com (gateway-1237.mvista.com [63.81.120.158]) by ozlabs.org (Postfix) with ESMTP id 2DB36DDDFB for ; Sat, 26 Jul 2008 22:39:03 +1000 (EST) Subject: Re: [PATCH] powerpc/mpc5200: Fix locking on mpc52xx_spi driver From: Daniel Walker To: Grant Likely In-Reply-To: <20080726062226.10506.65539.stgit@trillian.secretlab.ca> References: <20080726062226.10506.65539.stgit@trillian.secretlab.ca> Content-Type: text/plain Date: Sat, 26 Jul 2008 08:35:50 -0400 Message-Id: <1217075750.3970.16.camel@localhost.localdomain> Mime-Version: 1.0 Cc: spi-devel-general@lists.sourceforge.net, dbrownell@users.sourceforge.net, linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2008-07-26 at 02:24 -0400, Grant Likely wrote: > From: Grant Likely > > 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 > --- > > 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