Re: [PATCH] mtd: spi-nor: sfdp: Increase SFDP data size limit to 16 KiB
From: Miquel Raynal
Date: Thu Sep 17 2026 - 08:50:58 EST
On 17/09/2026 at 14:02:15 +09, Takahiro Kuwano via B4 Relay <devnull+takahiro.kuwano.infineon.com@xxxxxxxxxx> wrote:
> From: Takahiro Kuwano <takahiro.kuwano@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxx>
> Suggested-by: Michael Walle <mwalle@xxxxxxxxxx>
> Signed-off-by: Takahiro Kuwano <takahiro.kuwano@xxxxxxxxxxxx>
Acked-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>