public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: spi-nor: Enable locking for n25q00a
@ 2025-10-06 22:34 Sean Anderson
  2025-10-06 22:38 ` Sean Anderson
  2025-10-07 13:15 ` Pratyush Yadav
  0 siblings, 2 replies; 22+ messages in thread
From: Sean Anderson @ 2025-10-06 22:34 UTC (permalink / raw)
  To: Tudor Ambarus, Pratyush Yadav, Michael Walle, linux-mtd
  Cc: Richard Weinberger, linux-kernel, Miquel Raynal,
	Vignesh Raghavendra, Sean Anderson

The datasheet for n25q00a shows that the status register has the same
layout as for n25q00, so use the same flags to enable locking support.
These flags should have been added back in commit 150ccc181588 ("mtd:
spi-nor: Enable locking for n25q128a11"), but they were removed by the
maintainer...

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
---
Tested with a mt25qu01gbbb, which shares the same flash ID.

 drivers/mtd/spi-nor/micron-st.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c
index 187239ccd549..17c7d6322508 100644
--- a/drivers/mtd/spi-nor/micron-st.c
+++ b/drivers/mtd/spi-nor/micron-st.c
@@ -486,6 +486,8 @@ static const struct flash_info st_nor_parts[] = {
 		.id = SNOR_ID(0x20, 0xbb, 0x21),
 		.name = "n25q00a",
 		.size = SZ_128M,
+		.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_4BIT_BP |
+			 SPI_NOR_BP3_SR_BIT6,
 		.no_sfdp_flags = SECT_4K | SPI_NOR_QUAD_READ,
 		.mfr_flags = USE_FSR,
 		.fixups = &n25q00_fixups,
-- 
2.35.1.1320.gc452695387.dirty


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

end of thread, other threads:[~2025-11-14 17:56 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 22:34 [PATCH] mtd: spi-nor: Enable locking for n25q00a Sean Anderson
2025-10-06 22:38 ` Sean Anderson
2025-10-08  5:05   ` Tudor Ambarus
2025-10-08 12:38     ` Pratyush Yadav
2025-10-07 13:15 ` Pratyush Yadav
2025-10-07 14:20   ` Sean Anderson
2025-10-08 12:30     ` Pratyush Yadav
2025-10-08 12:40       ` Pratyush Yadav
2025-10-09 22:27       ` Sean Anderson
2025-10-09 23:07         ` Pratyush Yadav
2025-10-10 15:45           ` Sean Anderson
2025-10-13  7:30             ` Tudor Ambarus
2025-10-14 18:25               ` Sean Anderson
2025-11-10  7:08                 ` Tudor Ambarus
2025-11-10 10:16                   ` Pratyush Yadav
2025-11-10 16:36                   ` Sean Anderson
2025-11-11  6:07                     ` Tudor Ambarus
2025-11-12 13:10                 ` Miquel Raynal
2025-11-12 13:20                   ` Miquel Raynal
2025-11-12 13:34                     ` Michael Walle
2025-11-13 15:32                   ` Sean Anderson
2025-11-14 17:55                     ` Miquel Raynal

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