From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bh0uw-0007RG-OH for linux-mtd@lists.infradead.org; Mon, 05 Sep 2016 20:54:59 +0000 Received: by mail-wm0-x242.google.com with SMTP id w12so5790157wmf.1 for ; Mon, 05 Sep 2016 13:54:37 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v3] spi-nor: fix flags for s25fl128s To: Brian Norris References: <4d3db993-d030-3659-2f62-94c373f57038@gmail.com> Cc: MTD Mailing List , Jagan Teki Message-ID: <808bf727-f562-79d4-a60f-5e437cc15da6@gmail.com> Date: Mon, 5 Sep 2016 22:54:29 +0200 MIME-Version: 1.0 In-Reply-To: <4d3db993-d030-3659-2f62-94c373f57038@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Reviewed-by: Jagan Teki --- v2: - In addition remove SECT_4K flag. 4K erases are supported, but not uniformly. v3: - mention removal of SECT_4K also in actual commit message --- 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 d0fc165..4f8e488 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -905,7 +905,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) }, -- 2.9.2