[PATCH 0/4] mtd: spi-nor: macronix: Improve general support

From: Miquel Raynal

Date: Wed Nov 25 2026 - 13:02:23 EST


There are multiple ongoing issues with the current state of the Macronix
vendor driver:
- wrong RDCR opcode in general
- erroneous QER handling
- issues with locking

This series aims at fixing all those open points. One reason they have
stayed for so long, is because there was no easy way to define a clean
per-vendor RDCR opcode nor to easily hook fixups to JEDEC IDs *and*
extra conditions. This is all possible now thanks to the recently merged
heavy QER handling rework, so let's use these capabilities.

Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
---
Miquel Raynal (4):
mtd: spi-nor: macronix: Clear the default RDCR opcode
mtd: spi-nor: macronix: Clear the RDCR opcode on MX25L3255E
mtd: spi-nor: macronix: Enable RDCR for the parts that support it
mtd: spi-nor: macronix: Describe locking support for MX25L51245G

drivers/mtd/spi-nor/macronix.c | 91 +++++++++++++++++++++++++++++++++++++++---
1 file changed, 85 insertions(+), 6 deletions(-)
---
base-commit: 19d1b4de6d37bccecc3ad9144d279f1baa405eb1
change-id: 20261125-macronix-upstreaming-spi-nor-cleanup-a08351bbe71d

Best regards,
--
Miquel Raynal <miquel.raynal@xxxxxxxxxxx>