Re: [PATCH v3] mtd: spinand: cache the last read page to avoid redundant SPI operations
From: Miquel Raynal
Date: Tue Sep 08 2026 - 12:02:12 EST
Hello Zongzhen,
On 08/09/2026 at 18:19:58 +08, Zongzhen Feng <1768315307@xxxxxx> 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