[PATCH v2 00/11] mtd: spinand: Winbond continuous read support

Miquel Raynal miquel.raynal at bootlin.com
Tue Apr 28 05:43:48 PDT 2026


On 26/03/2026 at 17:25:47 +01, Miquel Raynal <miquel.raynal at bootlin.com> wrote:

> Hello,
>
> SPI NAND continuous read support has already been added a few releases
> ago, but only Macronix chips were benefiting from this support. Winbond
> chips also have a continuous read feature, which is slightly more
> complex to use in the scope of the Linux kernel, because they these
> chips expect a different read from cache operation once in continuous
> mode.
>
> In order to be more flexible, this series changes the logic behind
> dirmaps. Direct mappings used to be very static, not flexible. I am
> proposing to change this and turn them in to slightly more dynamic
> interfaces, where for instance we can:
> - Enable/disable the correction (was previously handled by creating yet
>   another pair of direct mappings per target).
> - Select one or another variant for the cache operations.
>
> I propose to name the variants available in a direct mapping "primary"
> and "secondary", and let the upper layer (SPI NOR or SPI NAND) point to
> the one that needs to be used for the operation. Controller drivers
> should not really care about this change, expect the fact that they
> should not keep a static representation of the template on their
> side. Because of that, I am creating a capability boolean to flag
> drivers that support this capability (the flag is ignored in the
> nodirmap case).
>

Applied to nand/next.



More information about the linux-mtd mailing list