Skip to content

Commit b0fcb4b

Browse files
mkresinCyrille Pitchen
authored andcommitted
mtd: spi-nor: enable stateless 4b op codes for mx25u25635f
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. Signed-off-by: Mathias Kresin <dev@kresin.me> Acked-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
1 parent 835ed7b commit b0fcb4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/spi-nor/spi-nor.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ static const struct flash_info spi_nor_ids[] = {
10231023
{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
10241024
{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
10251025
{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) },
1026-
{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K) },
1026+
{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
10271027
{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
10281028
{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_QUAD_READ) },
10291029
{ "mx66l1g55g", INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },

0 commit comments

Comments
 (0)