mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: rawnand: serialize OTP and BBT recovery operations
@ 2026-11-08 21:23 James Hilliard
  2026-11-08 21:23 ` [PATCH 1/2] mtd: rawnand: macronix: serialize OTP access with NAND operations James Hilliard
  2026-11-08 21:23 ` [PATCH 2/2] mtd: rawnand: serialize bad-block marker writes during BBT recovery James Hilliard
  0 siblings, 2 replies; 3+ messages in thread
From: James Hilliard @ 2026-11-08 21:23 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Arseniy Krasnov, Boris Brezillon, Kyle Roeschley
  Cc: linux-mtd, linux-kernel, James Hilliard, stable

Use the existing chip/controller serialization for the Macronix OTP
transaction and for marker writes after a BBT erase or write failure.
Both paths issue NAND commands outside the ordinary MTD read/write
wrappers, so they must acquire the same locks and wait for suspended
chips themselves.

The first patch makes the existing helpers available within the raw
NAND core and uses them for Macronix OTP. The second uses them for BBT
recovery.

Assisted-by: Codex:gpt-6-astra
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

---
James Hilliard (2):
      mtd: rawnand: macronix: serialize OTP access with NAND operations
      mtd: rawnand: serialize bad-block marker writes during BBT recovery

 drivers/mtd/nand/raw/internals.h     | 2 ++
 drivers/mtd/nand/raw/nand_base.c     | 4 ++--
 drivers/mtd/nand/raw/nand_bbt.c      | 2 ++
 drivers/mtd/nand/raw/nand_macronix.c | 2 ++
 4 files changed, 8 insertions(+), 2 deletions(-)
---
base-commit: 30daaf3e7897b4a8d9b72e5b0c86dd6e2a4d7d85
change-id: 20261108-submit-rawnand-operation-locking-v1-1a0b8fe786d4

Best regards,
--  
James Hilliard <james.hilliard1@gmail.com>


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

end of thread, other threads:[~2026-11-08 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 21:23 [PATCH 0/2] mtd: rawnand: serialize OTP and BBT recovery operations James Hilliard
2026-11-08 21:23 ` [PATCH 1/2] mtd: rawnand: macronix: serialize OTP access with NAND operations James Hilliard
2026-11-08 21:23 ` [PATCH 2/2] mtd: rawnand: serialize bad-block marker writes during BBT recovery James Hilliard

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

all inboxes | Powered by JetHome®