[PATCH] mtd: spi-nor: sfdp: Increase SFDP data size limit to 16 KiB

Miquel Raynal miquel.raynal at bootlin.com
Thu Sep 17 05:42:11 PDT 2026


On 17/09/2026 at 14:02:15 +09, Takahiro Kuwano via B4 Relay <devnull+takahiro.kuwano.infineon.com at kernel.org> wrote:

> From: Takahiro Kuwano <takahiro.kuwano at infineon.com>
>
> The size of SFDP data read and cached is limited to avoid allocating
> too much memory. The current limit is PAGE_SIZE, but the Spansion S25FS256S
> has parameter tables at offsets beyond 4 KiB.
>
> Increase the limit to 16 KiB to support such devices by introducing the
> SFDP_MAX_SIZE macro.
>
> Suggested-by: Miquel Raynal <miquel.raynal at bootlin.com>
> Suggested-by: Michael Walle <mwalle at kernel.org>
> Signed-off-by: Takahiro Kuwano <takahiro.kuwano at infineon.com>

Acked-by: Miquel Raynal <miquel.raynal at bootlin.com>



More information about the linux-mtd mailing list