Re: [RESEND PATCH 2/2] mtd: spi-nor: enable lock interface for macronix chips

2020-09-30 Thread Ivan Mikhaylov
On Wed, 2020-09-30 at 15:10 +0530, Vignesh Raghavendra wrote: > Hi, > > On 9/21/20 4:54 PM, Ivan Mikhaylov wrote: > > Add locks for whole macronix chip series with BP0-2 and BP0-3 bits. > > > > Tested with mx25l51245g(BP0-3). > > Since you have only tested on flash that have 4bit BP, please don'

Re: [RESEND PATCH 2/2] mtd: spi-nor: enable lock interface for macronix chips

2020-09-30 Thread Vignesh Raghavendra
Hi, On 9/21/20 4:54 PM, Ivan Mikhaylov wrote: > Add locks for whole macronix chip series with BP0-2 and BP0-3 bits. > > Tested with mx25l51245g(BP0-3). Since you have only tested on flash that have 4bit BP, please don't modify flashes that have 3bit BP. Lets be conservative and enable only thing

[RESEND PATCH 2/2] mtd: spi-nor: enable lock interface for macronix chips

2020-09-21 Thread Ivan Mikhaylov
Add locks for whole macronix chip series with BP0-2 and BP0-3 bits. Tested with mx25l51245g(BP0-3). Signed-off-by: Ivan Mikhaylov --- drivers/mtd/spi-nor/macronix.c | 75 ++ 1 file changed, 50 insertions(+), 25 deletions(-) diff --git a/drivers/mtd/spi-nor/macro