Re: [PATCH v7 6/7] mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040

2020-12-03 Thread Tudor.Ambarus
On 12/3/20 1:00 AM, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > 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 fla

[PATCH v7 6/7] mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040

2020-12-02 Thread Michael Walle
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. Signed-off-by: Michael Walle --- changes since v6: - use spi_nor_write_sr_and_check() and log a d