Re: [PATCH 2/2] mtd: spi-nor: spansion: Assign .fixups to s25fs256s1
From: Michael Walle
Date: Wed Sep 16 2026 - 04:20:39 EST
On Tue Sep 15, 2026 at 3:37 PM CEST, Miquel Raynal wrote:
> Hello,
>
>> This didn't help as SFDP cache size is truncated to PAGE_SIZE in sfdp.c:
>>
>> /*
>> * Limit the total size to a reasonable value to avoid allocating too
>> * much memory just of because the flash returned some insane values.
>> */
>> if (sfdp_size > PAGE_SIZE) {
>> dev_dbg(dev, "SFDP data (%zu) too big, truncating\n",
>> sfdp_size);
>> sfdp_size = PAGE_SIZE;
>> }
>
> That size just being a sanity check, if it no longer fits our needs it
> must be increased.
Yes. Takahiro, could you propose a patch to replace the limit by
let's say SZ_16K. Hopefully, nobody will use an arbitrary offset >
0x3fff. but who knows :)
-michael