2020-08-12 15:18:54

by Ivan Mikhaylov

[permalink] [raw]
Subject: [PATCH 0/2] enable lock interface for macronix chips

TB(Top/Bottome protection bit) is not present in the status register for
macronix chips, do not touch TB bit in status register in this case.
Enable lock interface for most of macronix chips which are suitable for it.

Tested only mx25l51245g (BP0-3).

Ivan Mikhaylov (2):
mtd: spi-nor: do not touch TB bit without SPI_NOR_HAS_TB
mtd: spi-nor: enable lock interface for macronix chips

drivers/mtd/spi-nor/core.c | 22 +++++++---
drivers/mtd/spi-nor/macronix.c | 75 ++++++++++++++++++++++------------
2 files changed, 66 insertions(+), 31 deletions(-)

--
2.21.1


2020-08-31 10:36:07

by Ivan Mikhaylov

[permalink] [raw]
Subject: Re: [PATCH 0/2] enable lock interface for macronix chips

On Wed, 2020-08-12 at 18:18 +0300, Ivan Mikhaylov wrote:
> TB(Top/Bottome protection bit) is not present in the status register for
> macronix chips, do not touch TB bit in status register in this case.
> Enable lock interface for most of macronix chips which are suitable for it.
>
> Tested only mx25l51245g (BP0-3).
>
> Ivan Mikhaylov (2):
> mtd: spi-nor: do not touch TB bit without SPI_NOR_HAS_TB
> mtd: spi-nor: enable lock interface for macronix chips
>
> drivers/mtd/spi-nor/core.c | 22 +++++++---
> drivers/mtd/spi-nor/macronix.c | 75 ++++++++++++++++++++++------------
> 2 files changed, 66 insertions(+), 31 deletions(-)
>

ping