[PATCH v5 0/2] Add support for read retry

Cheng Ming Lin posted 2 patches 9 months, 3 weeks ago
drivers/mtd/nand/spi/core.c     | 35 ++++++++++++++-
drivers/mtd/nand/spi/macronix.c | 79 ++++++++++++++++++++++++++-------
include/linux/mtd/spinand.h     | 15 +++++++
3 files changed, 112 insertions(+), 17 deletions(-)
[PATCH v5 0/2] Add support for read retry
Posted by Cheng Ming Lin 9 months, 3 weeks ago
From: Cheng Ming Lin <chengminglin@mxic.com.tw>

When the host ECC fails to correct the data error of NAND device,
there's a special read for data recovery method which can be setup
by the host for the next read. There are several retry levels that
can be attempted until the lost data is recovered or definitely
assumed lost.

For more detailed information, please refer to the link below:
Link: https://www.macronix.com/Lists/Datasheet/Attachments/9034/MX35LF1G24AD,%203V,%201Gb,%20v1.4.pdf

v5:
* rebase on nand/next

v4:
* If set_read_retry fails, it should back to read_retry level 0

v3:
* If set_read_retry fails, it should return an error

v2:
* Remove fixups
* Remove the function of init_read_retry

Cheng Ming Lin (2):
  mtd: spi-nand: Add read retry support
  mtd: spi-nand: macronix: Add support for read retry

 drivers/mtd/nand/spi/core.c     | 35 ++++++++++++++-
 drivers/mtd/nand/spi/macronix.c | 79 ++++++++++++++++++++++++++-------
 include/linux/mtd/spinand.h     | 15 +++++++
 3 files changed, 112 insertions(+), 17 deletions(-)

-- 
2.25.1
Re: [PATCH v5 0/2] Add support for read retry
Posted by Miquel Raynal 9 months, 3 weeks ago
On Mon, 24 Feb 2025 15:03:47 +0800, Cheng Ming Lin wrote:
> From: Cheng Ming Lin <chengminglin@mxic.com.tw>
> 
> When the host ECC fails to correct the data error of NAND device,
> there's a special read for data recovery method which can be setup
> by the host for the next read. There are several retry levels that
> can be attempted until the lost data is recovered or definitely
> assumed lost.
> 
> [...]

Applied to nand/next, thanks!

[1/2] mtd: spi-nand: Add read retry support
      commit: c2c64e15172a1def9ccd104e1e7e3d41ac5d9853
[2/2] mtd: spi-nand: macronix: Add support for read retry
      commit: da3558d940c685048245c58ea536ca6f80025c87

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl