[PATCH v4 0/6] mtd: spinand: add OTP support

Martin Kurbanov posted 6 patches 1 year ago
There is a newer version of this series
drivers/mtd/nand/spi/Makefile |   3 +-
drivers/mtd/nand/spi/core.c   |  50 ++++-
drivers/mtd/nand/spi/esmt.c   |  90 ++++++++-
drivers/mtd/nand/spi/micron.c | 135 ++++++++++++-
drivers/mtd/nand/spi/otp.c    | 362 ++++++++++++++++++++++++++++++++++
include/linux/mtd/spinand.h   | 110 +++++++++++
6 files changed, 738 insertions(+), 12 deletions(-)
create mode 100644 drivers/mtd/nand/spi/otp.c
[PATCH v4 0/6] mtd: spinand: add OTP support
Posted by Martin Kurbanov 1 year ago
This patchset implements the SPI-NAND OTP functions to allow access to
the SPI-NAND OTP data.
Specific support is added for Micron MT29F2G01ABAGD and ESMT F50L1G41LB/
F50D1G41LB flash chips.

Changelog:
  v4 since v3 at [1]:
    - Support for factory OTP

  v3 since v2 at [2]:
    - Make cosmetic changes (Miquel Raynal)
    - Separate patch to introduce helper functions
    - Use dev_warn() instead of pr_warn()/WARN()
    - New patch for introducing the start_page field when defining OTP
    - Use mem_is_zero()

  v2 since v1 at [3]:
    - Make cosmetic changes (Miquel Raynal)

Links:
  [1] https://lore.kernel.org/all/20241226135623.43098-1-mmkurbanov@salutedevices.com/
  [2] https://lore.kernel.org/all/20240827174920.316756-1-mmkurbanov@salutedevices.com/
  [3] https://lore.kernel.org/all/20240617133504.179705-1-mmkurbanov@salutedevices.com/

Martin Kurbanov (6):
  mtd: spinand: make spinand_{read,write}_page global
  mtd: spinand: add OTP support
  mtd: spinand: make spinand_{wait,otp_page_size} global
  mtd: spinand: otp: add helpers functions
  mtd: spinand: micron: OTP access for MT29F2G01ABAGD
  mtd: spinand: esmt: OTP access for F50{L,D}1G41LB

 drivers/mtd/nand/spi/Makefile |   3 +-
 drivers/mtd/nand/spi/core.c   |  50 ++++-
 drivers/mtd/nand/spi/esmt.c   |  90 ++++++++-
 drivers/mtd/nand/spi/micron.c | 135 ++++++++++++-
 drivers/mtd/nand/spi/otp.c    | 362 ++++++++++++++++++++++++++++++++++
 include/linux/mtd/spinand.h   | 110 +++++++++++
 6 files changed, 738 insertions(+), 12 deletions(-)
 create mode 100644 drivers/mtd/nand/spi/otp.c

-- 
2.43.0
Re: [PATCH v4 0/6] mtd: spinand: add OTP support
Posted by Miquel Raynal 1 year ago
Hello Martin,

On 27/01/2025 at 18:38:18 +03, Martin Kurbanov <mmkurbanov@salutedevices.com> wrote:

> This patchset implements the SPI-NAND OTP functions to allow access to
> the SPI-NAND OTP data.
> Specific support is added for Micron MT29F2G01ABAGD and ESMT F50L1G41LB/
> F50D1G41LB flash chips.

The series is ready for me, but it looks like you aren't based on the
latest -rc1 which produces conflicts while applying. Can you please send
a rebased version? (conflicts should be easy to handle).

Thanks,
Miquèl