From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: Re: [Patch 1/1] spi: Fix pxa2xx_spi.c chip select sequence error Date: Wed, 20 Feb 2008 14:45:58 -0800 Message-ID: <200802201445.58772.david-b@pacbell.net> References: <47B90BD7.4000906@whoi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: spi-devel , "J. Scott Merritt" , Stephen Street To: Ned Forrester Return-path: In-Reply-To: <47B90BD7.4000906-/d+BM93fTQY@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Sunday 17 February 2008, Ned Forrester wrote: > + > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0/* FIXME, need to handle cs= polarity, > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * this driver uses struct = pxa2xx_spi_chip.cs_control to > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * specify a CS handling fu= nction, and it ignores most > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * struct spi_device.mode[s= ], including SPI_CS_HIGH */ > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0drv_data->cs_control(PXA2XX= _CS_ASSERT); > + > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0/* after chip select, relea= se the data by enabling service > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * requests and interrupts,= without changing any mode bits */ > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0write_SSCR1(cr1, reg); This code is duplicated below ... > =A0=A0=A0=A0=A0=A0=A0=A0} else { > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0if (drv_data->ssp_type != =3D PXA25x_SSP) > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0w= rite_SSTO(chip->timeout, reg); ... right here: > + > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0/* FIXME, need to handle cs= polarity, > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * this driver uses struct = pxa2xx_spi_chip.cs_control to > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * specify a CS handling fu= nction, and it ignores most > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * struct spi_device.mode[s= ], including SPI_CS_HIGH */ > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0drv_data->cs_control(PXA2XX= _CS_ASSERT); > + > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0/* after chip select, relea= se the data by enabling service > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 * requests and interrupts,= without changing any mode bits */ > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0write_SSCR1(cr1, reg); So it properly belongs on the other side of this bracket: > =A0=A0=A0=A0=A0=A0=A0=A0} If you fix that, I'll forward this for a 2.6.25 merge. - Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/