Skip to content
Commit dc928431 authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Boris Brezillon
Browse files

mtd: spi-nor: fix erase_type array to indicate current map conf

BFPT advertises all the erase types supported by all the possible
map configurations. Mask out the erase types that are not supported
by the current map configuration.

Backward compatibility test done on sst26vf064b.

Fixes: b038e8e3

 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table")
Reported-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent 2e6e902d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment