[PATCH 2/3] mtd: spi-nor: convert existing devices to use mfr_bank

A. Zini alessandro.zini at siemens.com
Mon Jul 29 03:20:15 PDT 2024


From: Alessandro Zini <alessandro.zini at siemens.com>

Convert existing devices to use the newly introduced manufacturer bank
information, instead of wrongly counting continuation codes as part of
the device ID.

This patch depends on patch #1.

Signed-off-by: Alessandro Zini <alessandro.zini at siemens.com>
---
 drivers/mtd/spi-nor/issi.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c
index 18d9a00aa22e..4966580fc0dd 100644
--- a/drivers/mtd/spi-nor/issi.c
+++ b/drivers/mtd/spi-nor/issi.c
@@ -60,16 +60,18 @@ static const struct flash_info issi_nor_parts[] = {
 		.no_sfdp_flags = SECT_4K,
 		.fixups = &pm25lv_nor_fixups
 	}, {
-		.id = SNOR_ID(0x7f, 0x9d, 0x20),
+		.id = SNOR_ID(0x9d, 0x20),
 		.name = "is25cd512",
 		.sector_size = SZ_32K,
 		.size = SZ_64K,
 		.no_sfdp_flags = SECT_4K,
+		.mfr_bank = 2,
 	}, {
-		.id = SNOR_ID(0x7f, 0x9d, 0x46),
+		.id = SNOR_ID(0x9d, 0x46),
 		.name = "pm25lq032",
 		.size = SZ_4M,
 		.no_sfdp_flags = SECT_4K,
+		.mfr_bank = 2,
 	}, {
 		.id = SNOR_ID(0x9d, 0x40, 0x13),
 		.name = "is25lq040b",
-- 
2.45.2




More information about the linux-mtd mailing list