]> git.ipfire.org Git - thirdparty/linux.git/commit
mtd: spinand: winbond: Add support for continuous reads on W25NxxJW
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 25 Mar 2026 14:37:36 +0000 (15:37 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 4 May 2026 13:25:12 +0000 (15:25 +0200)
commite1ff8802ac57a917bca50dcabaf5ea78d8cd407f
treee5f97e06424a26610ca96faa894adbe16d078db8
parentca842a62fe993019255b380ab53bed64ef31fe6f
mtd: spinand: winbond: Add support for continuous reads on W25NxxJW

As for the W35NxxJW family, add support for W25N{01,02}JW continuous
read support. Similar operations require to be done, such as setting a
specific bit in a configuration register, and providing a set of read
variants without the address cycles.

As read from cache variants are badly supported by SPI memory
controllers, we create a new set of read from cache templates with a
fake address cycle and just enough dummy cycles. There are two
unsupported configurations (which would require 4.5 dummy bytes), so we
just do not provide them.

The same extra value in the ECC is possible as with the W35NxxJW family,
so we reference the same helper to retrieve the ECC status.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
All variants have been validated on a Nuvoton MA35D1 platform.
drivers/mtd/nand/spi/winbond.c