From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 30 Apr 2010 08:48:15 -0400 Subject: [U-Boot] [PATCH 5/6 v2] spi_flash: support old STMicro parts with RES In-Reply-To: <1272598458-17946-6-git-send-email-thomas@wytron.com.tw> References: <20100425181430.6CF214C04D@gemini.denx.de> <1272598458-17946-6-git-send-email-thomas@wytron.com.tw> Message-ID: <201004300848.30524.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20100430/c3f1e88b/attachment.pgp