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

Miquel Raynal miquel.raynal at bootlin.com
Thu Sep 10 05:42:15 PDT 2026


Hi Zongzhen,

On 10/09/2026 at 04:26:18 GMT, sashiko-bot at kernel.org wrote:

> Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
> - [Critical] Partial page reads with software/host ECC cause silent data corruption on subsequent cache hits due to incomplete cache updates.
> - [Critical] Cache hit logic fails to check the Logical Unit Number (LUN), leading to cross-LUN cache aliasing.
> - [High] Missing cache invalidation on OOB/OTP writes causes cached reads to return clobbered data.
> - [High] Error handling leaves cache valid with uncorrected data on
> non-EBADMSG errors.

These still seem valid :-)

Miquèl



More information about the linux-mtd mailing list