Skip to content

Commit a30f53d

Browse files
sudip-mambarus
authored andcommitted
mtd: spi-nor: issi: is25wp256: Init flash based on SFDP
The datasheet of is25wp256 says it supports SFDP. Get rid of the static initialization of the flash parameters and init them when parsing SFDP. Testing showed the flash using SPINOR_OP_READ_1_1_4_4B 0x6c, SPINOR_OP_PP_4B 0x12 and SPINOR_OP_BE_4K_4B 0x21 before enabling SFDP. After this patch, it parses the SFDP information and still uses the same opcodes. Set sector_size and n_sectors to zero as they will be discovered when parsing SFDP. Signed-off-by: Sudip Mukherjee <[email protected]> [[email protected]: set sector_size and n_sectors to zero] Signed-off-by: Tudor Ambarus <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ef434f0 commit a30f53d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mtd/spi-nor/issi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ static const struct flash_info issi_nor_parts[] = {
7070
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
7171
{ "is25wp128", INFO(0x9d7018, 0, 64 * 1024, 256)
7272
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
73-
{ "is25wp256", INFO(0x9d7019, 0, 64 * 1024, 512)
74-
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
73+
{ "is25wp256", INFO(0x9d7019, 0, 0, 0)
74+
PARSE_SFDP
7575
FIXUP_FLAGS(SPI_NOR_4B_OPCODES)
7676
.fixups = &is25lp256_fixups },
7777

0 commit comments

Comments
 (0)