Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755148AbYFEIqA (ORCPT ); Thu, 5 Jun 2008 04:46:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753019AbYFEIpw (ORCPT ); Thu, 5 Jun 2008 04:45:52 -0400 Received: from host2.marvell.com ([65.219.4.2]:35722 "EHLO maili.marvell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752875AbYFEIpw (ORCPT ); Thu, 5 Jun 2008 04:45:52 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Subject: RE: [PATCH] spi: fix list scan success verification in PXA ssp driver Date: Thu, 5 Jun 2008 01:45:47 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] spi: fix list scan success verification in PXA ssp driver thread-index: AcjG51ujSSvVOGcPSWODK2LCONH8ZwAADZ+Q References: From: "Eric Miao" To: "Guennadi Liakhovetski" , Cc: , , "Russell King" , Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by alpha.home.local id m558k5Hl022003 Content-Length: 1418 Lines: 42 Acked-by: Eric Miao And this should really go through the ARM tree, please submit the patch to RMK's patch system. Thanks. Cheers - eric > -----Original Message----- > From: Guennadi Liakhovetski [mailto:g.liakhovetski@pengutronix.de] > Sent: Thursday, June 05, 2008 4:37 PM > To: linux-kernel@vger.kernel.org > Cc: dbrownell@users.sourceforge.net; Eric Miao; > spi-devel-general@lists.sourceforge.net > Subject: [PATCH] spi: fix list scan success verification in PXA ssp driver > > The list search success check in arch/arm/mach-pxa/ssp.c is wrong: for > example, it didn't recognise failure for me when I requested port 0. > > Signed-off-by: Guennadi Liakhovetski > > --- > > arch/arm/mach-pxa/ssp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/arch/arm/mach-pxa/ssp.c > =================================================================== > --- linux-2.6.orig/arch/arm/mach-pxa/ssp.c 2008-06-04 12:11:26.000000000 > +0200 > +++ linux-2.6/arch/arm/mach-pxa/ssp.c 2008-06-04 12:11:50.000000000 +0200 > @@ -330,7 +330,7 @@ > > mutex_unlock(&ssp_lock); > > - if (ssp->port_id != port) > + if (&ssp->node == &ssp_list) > return NULL; > > return ssp; ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?