mtd: spi-nor: fix flags for s25fl128s

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Dec 16 11:59:13 PST 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4287916d7bab2806305d3296b4cf261fa49d959b
Commit:     4287916d7bab2806305d3296b4cf261fa49d959b
Parent:     807c16253319ee6ccf8873ae64f070f7eb532cd5
Author:     Heiner Kallweit <hkallweit1 at gmail.com>
AuthorDate: Thu Oct 27 23:13:26 2016 +0200
Committer:  Cyrille Pitchen <cyrille.pitchen at atmel.com>
CommitDate: Sat Nov 26 15:38:53 2016 +0100

    mtd: spi-nor: fix flags for s25fl128s
    
    The Spansion S25FL128S also supports dual read mode.
    In addition remove flag SECT_4K. 4K erases are supported,
    but not uniformly.
    
    Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>
    Reviewed-by: Jagan Teki <jteki at openedev.com>
    Acked-by: Marek Vasut <marek.vasut at gmail.com>
    Signed-off-by: Cyrille Pitchen <cyrille.pitchen at atmel.com>
---
 drivers/mtd/spi-nor/spi-nor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index cebd0cc..96e202b1 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -906,7 +906,7 @@ static const struct flash_info spi_nor_ids[] = {
 	{ "s70fl01gs",  INFO(0x010221, 0x4d00, 256 * 1024, 256, 0) },
 	{ "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024,  64, 0) },
 	{ "s25sl12801", INFO(0x012018, 0x0301,  64 * 1024, 256, 0) },
-	{ "s25fl128s",	INFO6(0x012018, 0x4d0180, 64 * 1024, 256, SECT_4K | SPI_NOR_QUAD_READ) },
+	{ "s25fl128s",	INFO6(0x012018, 0x4d0180, 64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "s25fl129p0", INFO(0x012018, 0x4d00, 256 * 1024,  64, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "s25fl129p1", INFO(0x012018, 0x4d01,  64 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "s25sl004a",  INFO(0x010212,      0,  64 * 1024,   8, 0) },



More information about the linux-mtd-cvs mailing list