Re: [v2] mtd: spi-nor: fix erase_type array to indicate current map conf
From: Boris Brezillon
Date: Fri Nov 30 2018 - 04:37:57 EST
On Mon, 2018-11-26 at 12:45:44 UTC, wrote:
> From: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>
>
> 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: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table")
> Reported-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>
> Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>
> Tested-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>
Applied to http://git.infradead.org/linux-mtd.git master, thanks.
Boris