Skip to contentSkip to conversation

mtd: spi-nor-ids: Deduplicate mx25u25635f entry

PATCH In review Marek Vasut 4 participants 4 messages Sep 6, 2024 – Oct 10, 2024 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: spi-nor-ids: Deduplicate mx25u25635f entry

The mx25u25635f entry exists twice in spi_nor_ids, remove the less complete variant of the entry and keep only one copy of it.

Fixes f0084f1dfdbc ("drivers/mtd/spi/spi-nor-ids.c: add mx25u25635f support")

---
Cc: Andre Przywara <[email protected]>
Cc: Ashok Reddy Soma <[email protected]>
Cc: Dhruva Gole <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Neal Frager <[email protected]>
Cc: Prasad Kummari <[email protected]>
Cc: Teik Heng Chong <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: [email protected]

---
 drivers/mtd/spi/spi-nor-ids.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/spi/spi-nor-ids.c +0 -1
index d1389e681d6..5582a978ab5 100644
@@ -258,7 +258,6 @@ const struct flash_info spi_nor_ids[] = {
 	{ INFO("mx25u6435f",  0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ INFO("mx25l12805d", 0xc22018, 0, 64 * 1024, 256, SECT_4K) },
 	{ INFO("mx25u12835f", 0xc22538, 0, 64 * 1024, 256, SECT_4K) },
-	{ INFO("mx25u25635f", 0xc22539, 0, 64 * 1024, 512, SECT_4K) },
 	{ INFO("mx25u51245g", 0xc2253a, 0, 64 * 1024, 1024, SECT_4K |
 	       SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("mx25l12855e", 0xc22618, 0, 64 * 1024, 256, 0) },
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 28 lines · Marek Vasut

The mx25u25635f entry exists twice in spi_nor_ids, remove the less complete variant of the entry and keep only one copy of it.

Fixes f0084f1dfdbc ("drivers/mtd/spi/spi-nor-ids.c: add mx25u25635f support")

---
Cc: Andre Przywara <[email protected]>
Cc: Ashok Reddy Soma <[email protected]>
Cc: Dhruva Gole <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Neal Frager <[email protected]>
Cc: Prasad Kummari <[email protected]>
Cc: Teik Heng Chong <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: [email protected]

---
  drivers/mtd/spi/spi-nor-ids.c | 1 -
  1 file changed, 1 deletion(-)
drivers/mtd/spi/spi-nor-ids.c +0 -0
index d1389e681d6..5582a978ab5 100644

drivers/mtd/spi/spi-nor-ids.c const struct flash_info spi_nor_ids[] = { · line 263

Quoted 7 lines
drivers/mtd/spi/spi-nor-ids.c +0 -1
@@ -258,7 +258,6 @@ const struct flash_info spi_nor_ids[] = {
  	{ INFO("mx25u6435f",  0xc22537, 0, 64 * 1024, 128, SECT_4K) },
  	{ INFO("mx25l12805d", 0xc22018, 0, 64 * 1024, 256, SECT_4K) },
  	{ INFO("mx25u12835f", 0xc22538, 0, 64 * 1024, 256, SECT_4K) },
-	{ INFO("mx25u25635f", 0xc22539, 0, 64 * 1024, 512, SECT_4K) },
  	{ INFO("mx25u51245g", 0xc2253a, 0, 64 * 1024, 1024, SECT_4K |
  	       SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
  	{ INFO("mx25l12855e", 0xc22618, 0, 64 * 1024, 256, 0) },

Thanks,
Michal

Reviewed-by on v1 1/1
#2 lore raw
In reply to Marek Vasut

Hiya,

Quoted 4 lines · Marek Vasut

The mx25u25635f entry exists twice in spi_nor_ids, remove the less complete variant of the entry and keep only one copy of it.

Fixes f0084f1dfdbc ("drivers/mtd/spi/spi-nor-ids.c: add mx25u25635f support")

Or one can directly revert the offending commit as it dropped support for the 4b opcodes. Looks good anyway:

Quoted 32 lines

---
Cc: Andre Przywara <[email protected]>
Cc: Ashok Reddy Soma <[email protected]>
Cc: Dhruva Gole <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Neal Frager <[email protected]>
Cc: Prasad Kummari <[email protected]>
Cc: Teik Heng Chong <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: [email protected]

---
 drivers/mtd/spi/spi-nor-ids.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/spi/spi-nor-ids.c +0 -1
index d1389e681d6..5582a978ab5 100644
@@ -258,7 +258,6 @@ const struct flash_info spi_nor_ids[] = {
 	{ INFO("mx25u6435f",  0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ INFO("mx25l12805d", 0xc22018, 0, 64 * 1024, 256, SECT_4K) },
 	{ INFO("mx25u12835f", 0xc22538, 0, 64 * 1024, 256, SECT_4K) },
-	{ INFO("mx25u25635f", 0xc22539, 0, 64 * 1024, 512, SECT_4K) },
 	{ INFO("mx25u51245g", 0xc2253a, 0, 64 * 1024, 1024, SECT_4K |
 	       SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("mx25l12855e", 0xc22618, 0, 64 * 1024, 256, 0) },
#3 lore raw
In reply to Marek Vasut
Quoted 4 lines · Marek Vasut

The mx25u25635f entry exists twice in spi_nor_ids, remove the less complete variant of the entry and keep only one copy of it.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom