Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cz1s3-0002tq-AI for linux-mtd@lists.infradead.org; Fri, 14 Apr 2017 14:06:44 +0000 Received: by mail-wm0-x242.google.com with SMTP id o81so17977957wmb.0 for ; Fri, 14 Apr 2017 07:06:22 -0700 (PDT) Subject: Re: [PATCH] mtd: spi-nor: enable stateless 4b op codes for mx25u25635f To: Mathias Kresin , linux-mtd@lists.infradead.org References: <1492068234-9509-1-git-send-email-dev@kresin.me> Cc: cyrille.pitchen@atmel.com From: Marek Vasut Message-ID: <5a292873-3f53-2c54-4963-f312cf2d96d1@gmail.com> Date: Fri, 14 Apr 2017 16:06:19 +0200 MIME-Version: 1.0 In-Reply-To: <1492068234-9509-1-git-send-email-dev@kresin.me> 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: , On 04/13/2017 09:23 AM, Mathias Kresin wrote: > All required stateless 4-byte op codes are supported by this flash > chip. The stateless 4-byte support can't be autodetected due to a > missing 4-byte Address Instruction Table in SFDP. > > Fixes hangs on reboot for SoCs expecting the flash chip in 3byte mode. Acked-by: Marek Vasut Thanks! > Signed-off-by: Mathias Kresin > --- > 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 1ae872b..4b496d8 100644 > --- a/drivers/mtd/spi-nor/spi-nor.c > +++ b/drivers/mtd/spi-nor/spi-nor.c > @@ -1017,7 +1017,7 @@ static const struct flash_info spi_nor_ids[] = { > { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) }, > { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) }, > { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) }, > - { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K) }, > + { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) }, > { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) }, > { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_QUAD_READ) }, > { "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) }, > -- Best regards, Marek Vasut