From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Tue, 24 Jan 2012 09:40:03 +0100 Subject: [U-Boot] [PATCH] mx28: fix i.MX28 spi driver In-Reply-To: <4F117435.7080807@esd.eu> References: <4F117435.7080807@esd.eu> Message-ID: <4F1E6E63.1080307@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14/01/2012 13:25, Matthias Fuchs wrote: > The generic spi flash driver (drivers/mtd/spi/spi_flash.c) uses the > spi low level driver's spi_xfer() function with len=0 to deassert the > SPI flash' chip select. But the i.MX28 spi driver rejects this call > due to len=0. > > This patch implements an exception for len=0 with the SPI_XFER_END > flag set. This results in an extra read with the chip select being > deasserted afterwards. There seems to be no way to deassert the signal > by hand. > > Signed-off-by: Matthias Fuchs > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================