[PATCH RESEND v2 0/4] mtd: spinand: fix continuous reading mode support

Mikhail Kshevetskiy posted 4 patches 1 month, 3 weeks ago
There is a newer version of this series
drivers/mtd/nand/spi/core.c   | 88 +++++++++++++++++++++++++++--------
drivers/spi/spi-airoha-snfi.c |  4 ++
2 files changed, 72 insertions(+), 20 deletions(-)
[PATCH RESEND v2 0/4] mtd: spinand: fix continuous reading mode support
Posted by Mikhail Kshevetskiy 1 month, 3 weeks ago
Continuous reading mode is broken for some spi controllers. This may lead
to errors during reading of more than one flash page at once. This patch
series improve continuous mode support and add a fallback to regular
reading method if continuous reading is not supported by spi controller.

Changes v2:
 * added helper to create reading dirmap descriptor
 * fix spelling
 * error code is not used for regular reading fallback anymore
 * it's possible (but very unlucky) that someone will do raw reading
   of the flash in continuous mode (i.e. without OOB), so fix dirmap
   creation for that case as well.

Mikhail Kshevetskiy (4):
  mtd: spinand: fix direct mapping creation sizes.
  mtd: spinand: try a regular dirmap if creating a dirmap for continuous
    reading fails
  mtd: spinand: repeat reading in regular mode if continuous reading
    fails
  spi: spi-airoha-snfi: return an error for continuous mode dirmap
    creation cases

 drivers/mtd/nand/spi/core.c   | 88 +++++++++++++++++++++++++++--------
 drivers/spi/spi-airoha-snfi.c |  4 ++
 2 files changed, 72 insertions(+), 20 deletions(-)

-- 
2.50.1