mtd: spi-nor: winbond: Fix 4-byte opcode support for w25q256
authorMantas Pucka <mantas@8devices.com>
Wed, 15 Apr 2020 13:48:30 +0000 (16:48 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Sun, 31 May 2020 05:34:16 +0000 (08:34 +0300)
commite8aec15dd5842b5b11b0e621a2293348d3574a61
treeab305cde3817e37dbc4da9f6fb9ac7fd9698e897
parent0fa712c9db96b2c453809f85614aa008740ca8ec
mtd: spi-nor: winbond: Fix 4-byte opcode support for w25q256

There are 2 different chips (w25q256fv and w25q256jv) that share
the same JEDEC ID. Only w25q256jv fully supports 4-byte opcodes.
Use SFDP header version to differentiate between them.

Fixes: 10050a02f7d5 ("mtd: spi-nor: Add 4B_OPCODES flag to w25q256")
Signed-off-by: Mantas Pucka <mantas@8devices.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/sfdp.c
drivers/mtd/spi-nor/sfdp.h
drivers/mtd/spi-nor/winbond.c