From patchwork Fri Jul 16 14:08:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Spansion SPI parts Date: Fri, 16 Jul 2010 04:08:44 -0000 From: "Hoyler, Gernot" X-Patchwork-Id: 59109 Message-Id: To: "linux-mtd@lists.infradead.org" Can we fix the Spansion SPI flash device names in drivers/mtd/devices/m25p80.c? There is no Spansion s25sl device family. The references should be changed to s25fl, at a couple of locations (see below). Thanks, Gernot --- Dr. Gernot Hoyler, Customer Engineering, Spansion LLC ------------------------------------------------------------------------------------- diff -rupN linux-2.6.34/drivers/mtd/devices/Kconfig linux-2.6.34-fixed/drivers/mtd/devices/Kconfig --- linux-2.6.34/drivers/mtd/devices/Kconfig 2010-05-16 23:17:36.000000000 +0200 +++ linux-2.6.34-fixed/drivers/mtd/devices/Kconfig 2010-07-16 15:45:16.000000000 +0200 @@ -84,7 +84,7 @@ config MTD_M25P80 help This enables access to most modern SPI flash chips, used for program and data storage. Series supported include Atmel AT26DF, - Spansion S25SL, SST 25VF, ST M25P, and Winbond W25X. Other chips + Spansion S25FL, SST 25VF, ST M25P, and Winbond W25X. Other chips are supported as well. See the driver source for the current list, or to add other chips. diff -rupN linux-2.6.34/drivers/mtd/devices/m25p80.c linux-2.6.34-fixed/drivers/mtd/devices/m25p80.c --- linux-2.6.34/drivers/mtd/devices/m25p80.c 2010-05-16 23:17:36.000000000 +0200 +++ linux-2.6.34-fixed/drivers/mtd/devices/m25p80.c 2010-07-16 15:45:02.000000000 +0200 @@ -649,13 +649,13 @@ static const struct spi_device_id m25p_i /* Spansion -- single (large) sector size only, at least * for the chips listed here (without boot sectors). */ - { "s25sl004a", INFO(0x010212, 0, 64 * 1024, 8, 0) }, - { "s25sl008a", INFO(0x010213, 0, 64 * 1024, 16, 0) }, - { "s25sl016a", INFO(0x010214, 0, 64 * 1024, 32, 0) }, - { "s25sl032a", INFO(0x010215, 0, 64 * 1024, 64, 0) }, - { "s25sl064a", INFO(0x010216, 0, 64 * 1024, 128, 0) }, - { "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) }, - { "s25sl12801", INFO(0x012018, 0x0301, 64 * 1024, 256, 0) }, + { "s25fl004a", INFO(0x010212, 0, 64 * 1024, 8, 0) }, + { "s25fl008a", INFO(0x010213, 0, 64 * 1024, 16, 0) }, + { "s25fl016a", INFO(0x010214, 0, 64 * 1024, 32, 0) }, + { "s25fl032a", INFO(0x010215, 0, 64 * 1024, 64, 0) }, + { "s25fl064a", INFO(0x010216, 0, 64 * 1024, 128, 0) }, + { "s25fl128p0", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) }, + { "s25fl128p1", INFO(0x012018, 0x0301, 64 * 1024, 256, 0) }, { "s25fl129p0", INFO(0x012018, 0x4d00, 256 * 1024, 64, 0) }, { "s25fl129p1", INFO(0x012018, 0x4d01, 64 * 1024, 256, 0) },