[PATCH 2/2] mtd: spi-nor: spansion: Assign .fixups to s25fs256s1

Miquel Raynal miquel.raynal at bootlin.com
Tue Sep 15 06:37:21 PDT 2026


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.

Thanks,
Miquèl



More information about the linux-mtd mailing list