[PATCH] mtd: spi-nor: Describe locking support for MX25L51245G
From: Marek Vasut
Date: Thu Sep 24 2026 - 21:45:41 EST
The MX25L51245G part has the same 4-BP locking mechanism as MX25L12805D.
Describe the locking support.
Signed-off-by: Marek Vasut <marex@xxxxxxxxxxxx>
---
Cc: Cheng Ming Lin <chengminglin@xxxxxxxxxxx>
Cc: Michael Walle <mwalle@xxxxxxxxxx>
Cc: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
Cc: Pratyush Yadav <pratyush@xxxxxxxxxx>
Cc: Richard Weinberger <richard@xxxxxx>
Cc: Takahiro Kuwano <takahiro.kuwano@xxxxxxxxxxxx>
Cc: Vignesh Raghavendra <vigneshr@xxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-mtd@xxxxxxxxxxxxxxxxxxx
---
drivers/mtd/spi-nor/macronix.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index b3fdb4b2fa1ca..4de1b490b16b6 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -165,6 +165,7 @@ static const struct flash_info macronix_nor_parts[] = {
}, {
/* MX25L51245G, MX25L51273G, MX66L51235F */
.id = SNOR_ID(0xc2, 0x20, 0x1a),
+ .flags = SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP,
}, {
/* MX66L1G45G */
.id = SNOR_ID(0xc2, 0x20, 0x1b),
--
2.53.0