linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] handle RDCR opcode for Macronix
@ 2025-09-22 15:56 Maarten Zanders
  2025-09-22 15:56 ` [PATCH 1/2] mtd: spi-nor: add configurable RDCR opcode Maarten Zanders
  2025-09-22 15:56 ` [PATCH 2/2] mtd: spi-nor: macronix: use RDCR opcode 0x15 Maarten Zanders
  0 siblings, 2 replies; 6+ messages in thread
From: Maarten Zanders @ 2025-09-22 15:56 UTC (permalink / raw)
  To: Tudor Ambarus, Pratyush Yadav, Michael Walle, Miquel Raynal,
	Richard Weinberger, Vignesh Raghavendra, Boris Brezillon
  Cc: Maarten Zanders, linux-mtd, linux-kernel

This series introduces a configurable RDCR (Read Configuration Register)
opcode for spi-nor flashes and applies a fix for Macronix devices.

Patch 1 adds a new flash parameter to hold the RDCR opcode, defaulting
to 0x35 (JEDEC standard).

Patch 2 applies a Macronix-specific fixup, setting the RDCR opcode to
0x15.

Signed-off-by: Maarten Zanders <maarten@zanders.be>

Maarten Zanders (2):
  mtd: spi-nor: add configurable RDCR opcode
  mtd: spi-nor: macronix: use RDCR opcode 0x15

 drivers/mtd/spi-nor/core.c     | 12 +++++++++---
 drivers/mtd/spi-nor/core.h     |  6 ++++--
 drivers/mtd/spi-nor/macronix.c |  1 +
 include/linux/mtd/spi-nor.h    |  3 +++
 4 files changed, 17 insertions(+), 5 deletions(-)


base-commit: 4550d33e18112a11a740424c4eec063cd58e918c
-- 
2.51.0


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

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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-22 15:56 [PATCH 0/2] handle RDCR opcode for Macronix Maarten Zanders
2025-09-22 15:56 ` [PATCH 1/2] mtd: spi-nor: add configurable RDCR opcode Maarten Zanders
2025-09-22 15:56 ` [PATCH 2/2] mtd: spi-nor: macronix: use RDCR opcode 0x15 Maarten Zanders
2025-09-23 14:14   ` Michael Walle
2025-09-24  9:00     ` Maarten Zanders
2025-09-24 11:57       ` Michael Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).