]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040
authorMichael Walle <michael@walle.cc>
Thu, 3 Dec 2020 16:29:58 +0000 (17:29 +0100)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 7 Dec 2020 17:27:30 +0000 (22:57 +0530)
commita54167d94e9dc87571e76a7bea180540dc0d85e7
treef25f45f2e2d37c35bde2beae1310c7e74758df0a
parentb4fc4459d7e1e0c76e2fa0a64afe0d622cb859e2
mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040

These flashes have some weird BP bits mapping which aren't supported in
the current locking code. Just add a simple unlock op to unprotect the
entire flash array which is needed for legacy behavior.

Fixes: 14b93c6d0d48 ("mtd: spi-nor: Rework the disabling of block write protection")
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-7-michael@walle.cc
drivers/mtd/spi-nor/atmel.c
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h