mtd: spi-nor: sst: fix BPn bits for the SST25VF064C
authorMichael Walle <michael@walle.cc>
Thu, 3 Dec 2020 16:29:53 +0000 (17:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:40 +0000 (11:53 +0100)
commitf79f7258f3b7091ae5180dfe07a98e6b76ac5132
tree2654e0b27caf7ddc170d098cf77aebb1f3dc8158
parentbfe3dcabb9a056145a3c22c995846695d12ea785
mtd: spi-nor: sst: fix BPn bits for the SST25VF064C

[ Upstream commit 989d4b72bae3b05c1564d38e71e18f65b12734fb ]

This flash part actually has 4 block protection bits.

Please note, that this patch is just based on information of the
datasheet of the datasheet and wasn't tested.

Fixes: 3e0930f109e7 ("mtd: spi-nor: Rework the disabling of block write protection")
Reported-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201203162959.29589-2-michael@walle.cc
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/spi-nor/sst.c