OSDN Git Service

mtd: spi-nor: Add the SNOR_F_4B_OPCODES flag
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 6 Dec 2018 10:37:34 +0000 (11:37 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 10 Dec 2018 20:59:07 +0000 (21:59 +0100)
commit548ed6847f5303e4f33ecd6de5670cac15bfe6ac
tree8b911944cca411a070fa482b711f62ff11920890
parent84a1c2109d23df3543d96231c4fee1757299bb1a
mtd: spi-nor: Add the SNOR_F_4B_OPCODES flag

Some flash_info entries have the SPI_NOR_4B_OPCODES flag set to let the
core know that the flash supports 4B opcode. While this solution works
fine for id-based caps detection, it doesn't work that well when relying
on SFDP-based caps detection. Let's add an SNOR_F_4B_OPCODES flag so
that the SFDP parsing code can set it when appropriate.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h