Re: [PATCH v7 7/7] mtd: spi-nor: keep lock bits if they are non-volatile

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 > > Traditionally, linux unlocks the whole flash because there are legacy > devices which has the write protections bits set by default at startup. > If you actu

[PATCH v7 7/7] mtd: spi-nor: keep lock bits if they are non-volatile

2020-12-02 Thread Michael Walle
Traditionally, linux unlocks the whole flash because there are legacy devices which has the write protections bits set by default at startup. If you actually want to use the flash protection bits, eg. because there is a read-only part for a bootloader, this automatic unlocking is harmful. If there