public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] Revert "mtd: spinand: esmt: fix id code for F50D1G41LB"
@ 2025-12-02 15:05 Ziyang Huang
  2025-12-08  8:33 ` Miquel Raynal
  2025-12-16  8:09 ` Miquel Raynal
  0 siblings, 2 replies; 7+ messages in thread
From: Ziyang Huang @ 2025-12-02 15:05 UTC (permalink / raw)
  To: miquel.raynal
  Cc: richard, vigneshr, tudor.ambarus, mmkurbanov, hzyitc,
	george.moussalem, linux-mtd, linux-kernel

This reverts commit dd26402642a0899fde59ea6b0852fad3d799b4cc.

The issue George met is due to the limit of QPIC, not the issue of the
flash chip.

QPIC only supports 4 bytes ID. So the fifth byte is always 0.

If we use spi-gpio, the fifth byte can be read correctly.

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
---
 drivers/mtd/nand/spi/esmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/spi/esmt.c b/drivers/mtd/nand/spi/esmt.c
index 9a9325c0bc49..c1285d52d458 100644
--- a/drivers/mtd/nand/spi/esmt.c
+++ b/drivers/mtd/nand/spi/esmt.c
@@ -199,7 +199,7 @@ static const struct spinand_info esmt_c8_spinand_table[] = {
 		     SPINAND_FACT_OTP_INFO(2, 0, &f50l1g41lb_fact_otp_ops)),
 	SPINAND_INFO("F50D1G41LB",
 		     SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0x11, 0x7f,
-				0x7f),
+				0x7f, 0x7f),
 		     NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
 		     NAND_ECCREQ(1, 512),
 		     SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
-- 
2.40.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-12-16  8:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02 15:05 [PATCH] Revert "mtd: spinand: esmt: fix id code for F50D1G41LB" Ziyang Huang
2025-12-08  8:33 ` Miquel Raynal
2025-12-08  9:26   ` George Moussalem
2025-12-08 10:26     ` Md Sadre Alam
2025-12-16  8:07     ` Miquel Raynal
2025-12-12 14:53   ` Ziyang Huang
2025-12-16  8:09 ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox