[PATCH 6.12.y 0/3] Backport fixes for SPI NAND on i.MX6UL

From: Frieder Schrempf

Date: Tue Aug 11 2026 - 12:53:22 EST


From: Frieder Schrempf <frieder.schrempf@xxxxxxxxxx>

There are failures with our Kontron i.MX6UL boards using Macronix SPI NAND
chips on i.MX6UL that originate in the introduction of the continuous read
feature in 6.12 (631cfdd0520d19b7f4fc13b834fd9c8b46c6dbac) and the absence
of later fixes introduced in 6.18 that were never backported.

This series contains these fixes picked from mainline, applying to stable 6.12
cleanly.

Cc: stable@xxxxxxxxxxxxxxx
Cc: Mikhail Kshevetskiy <mikhail.kshevetskiy@xxxxxxxxx>
Cc: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
Cc: linux-mtd@xxxxxxxxxxxxxxxxxxx

Mikhail Kshevetskiy (3):
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

drivers/mtd/nand/spi/core.c | 74 +++++++++++++++++++++++++++++--------
1 file changed, 59 insertions(+), 15 deletions(-)

--
2.55.0