[PATCH v3] mtd: spinand: cache the last read page to avoid redundant SPI operations

Miquel Raynal miquel.raynal at bootlin.com
Tue Sep 8 07:22:46 PDT 2026


Hello Zongzhen,

On 08/09/2026 at 18:19:58 +08, Zongzhen Feng <1768315307 at qq.com> wrote:

> When squashfs reads files through mtdblock, the mtdblock layer
> splits I/O into 512-byte sectors. For a 4K-page SPI NAND, this
> means reading the same page 8 times (4096 / 512), generating 7x
> redundant SPI read-from-cache operations. Each such operation
> involves a full SPI bus transaction, significantly slowing down
> boot time and file access.

I haven't made a review yet, but there are still a lot of Sashiko
complaints and they look reasonable. Can you please check them?

Thanks,
Miquèl



More information about the linux-mtd mailing list