* [PATCH] mtd: spi-nor: issi: Add support for ISSI IS25LP512MG
@ 2026-11-08 0:45 Matthew Parker
2026-11-08 0:53 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Parker @ 2026-11-08 0:45 UTC (permalink / raw)
To: pratyush, mwalle, miquel.raynal, richard, vigneshr
Cc: linux-mtd, linux-kernel, stable, Matthew Parker, Adam Calabrigo
Add support for the ISSI IS25LP512MG 512Mbit (64 MiB) SPI NOR flash.
The device provides JESD216B SFDP tables which accurately describe
fast-read modes and erase geometry. Flash read, write, and erase
operations across the full 64 MiB array have been verified on hardware.
Cc: stable@vger.kernel.org # v6.1+
Co-developed-by: Adam Calabrigo <adamc@arista.com>
Signed-off-by: Adam Calabrigo <adamc@arista.com>
Signed-off-by: Matthew Parker <mparker@arista.com>
---
drivers/mtd/spi-nor/issi.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c
index 2f057d731df2..977dc5ba8028 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,
+ .flags = SPI_NOR_QUAD_PP,
+ .parse_sfdp = true,
}, {
.id = SNOR_ID(0x9d, 0x70, 0x16),
.name = "is25wp032",
--
2.51.0
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mtd: spi-nor: issi: Add support for ISSI IS25LP512MG
2026-11-08 0:45 [PATCH] mtd: spi-nor: issi: Add support for ISSI IS25LP512MG Matthew Parker
@ 2026-11-08 0:53 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-08 0:53 UTC (permalink / raw)
To: Matthew Parker, pratyush, mwalle, miquel.raynal, richard,
vigneshr
Cc: linux-mtd, Adam Calabrigo
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@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
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-08 0:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-08 0:45 [PATCH] mtd: spi-nor: issi: Add support for ISSI IS25LP512MG Matthew Parker
2026-11-08 0:53 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox