[PATCH] mtd: spi-nor: issi: Add support for ISSI IS25LP512MG
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sat Nov 7 16:53:33 PST 2026
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] mtd: spi-nor: issi: build failure from removed parse_sfdp
initializer
- [Medium] mtd: spi-nor: issi: setting .size and .name breaks
spi_nor_needs_sfdp()
--
commit b81da267d9946b2790b1da232d5027f7a818531c
Author: Matthew Parker <mparker at arista.com>
mtd: spi-nor: issi: Add support for ISSI IS25LP512MG
This commit adds a flash_info entry for the ISSI IS25LP512MG 64 MiB SPI NOR
flash in issi_nor_parts[].
> diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c
> index 2f057d731df2a..977dc5ba80289 100644
> --- a/drivers/mtd/spi-nor/issi.c
> +++ b/drivers/mtd/spi-nor/issi.c
> @@ -101,6 +101,12 @@ static const struct flash_info issi_nor_parts[] = {
> }, {
> .id = SNOR_ID(0x9d, 0x60, 0x19),
> .name = "is25lp256",
> + }, {
> + .id = SNOR_ID(0x9d, 0x60, 0x20),
> + .name = "is25lp512mg",
> + .size = SZ_64M,
[Severity: Medium]
Does setting .size = SZ_64M break spi_nor_needs_sfdp() for this flash?
spi_nor_needs_sfdp() returns !nor->info->size, so setting .size causes
spi_nor_init_params() to ignore spi_nor_parse_sfdp() failures and fall back
to incomplete parameters without 4 KiB erase or fast-read modes. In
addition, struct flash_info documents .name as obsolete for new SFDP-based
entries; both .size and .name should be omitted here.
> + .flags = SPI_NOR_QUAD_PP,
> + .parse_sfdp = true,
[Severity: High]
Does this fail to build when CONFIG_MTD_SPI_NOR is enabled? struct
flash_info has no .parse_sfdp member since 3ea3f0ac242c ("mtd: spi-nor:
drop .parse_sfdp").
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261108004516.896887-1-mparker@arista.com?part=1
More information about the linux-mtd
mailing list