From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Fri, 30 Apr 2010 21:15:38 +0800 Subject: [U-Boot] [PATCH 5/6 v2] spi_flash: support old STMicro parts with RES In-Reply-To: <201004300848.30524.vapier@gentoo.org> References: <20100425181430.6CF214C04D@gemini.denx.de> <1272598458-17946-6-git-send-email-thomas@wytron.com.tw> <201004300848.30524.vapier@gentoo.org> Message-ID: <4BDAD7FA.5080803@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/30/2010 08:48 PM, Mike Frysinger wrote: > On Thursday 29 April 2010 23:34:17 Thomas Chou wrote: > >> --- a/drivers/mtd/spi/spi_flash.c >> +++ b/drivers/mtd/spi/spi_flash.c >> @@ -147,6 +147,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, >> unsigned int cs, #endif >> #ifdef CONFIG_SPI_FLASH_STMICRO >> case 0x20: >> + case 0xff: >> flash = spi_flash_probe_stmicro(spi, idcode); >> break; >> #endif >> > hrm, this kind of sucks, but i guess for now it's fine. stick a comment in > there about why we're sending the normal error byte to the stmicro function. > /* Let the stmicro func handle non-JEDEC ids */ > -mike > Hi Mike, I added the comment. Thank you very much. Best regards, Thomas