All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] mtd: docg3: fix spare-area transfers and ECC reporting
@ 2026-12-05  5:49 ` James Hilliard
  0 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-12-05  5:49 UTC (permalink / raw)
  To: Robert Jarzmik, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Ivan Djelic, David Woodhouse, Mike Dunn,
	Brian Norris, Artem Bityutskiy
  Cc: linux-mtd, linux-kernel, James Hilliard, stable

DiskOnChip G3 exposes eight free bytes in its 16-byte spare area. An
AUTO read can return ECC bytes instead of those free bytes; an OOB-only
write of all eight free bytes is rejected. A later page write can also
pick up stale spare bytes instead of the bytes supplied by its caller.

Use the selected OOB layout for reads and writes. Retire staged bytes
after a successful program of their page or erase of their block pair.
On full-page reads, correct BCH errors in the buffer containing the
affected byte. Report the highest bitflip count across all pages read.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

---
James Hilliard (5):
      mtd: docg3: check whole-page OOB writes in the selected mode
      mtd: docg3: invalidate staged OOB on page write and block erase
      mtd: docg3: correct BCH errors in the buffer holding the affected byte
      mtd: docg3: return the requested spare bytes in the selected OOB mode
      mtd: docg3: report the maximum bitflip count across read pages

 drivers/mtd/devices/docg3.c | 266 +++++++++++++++++++++-----------------------
 1 file changed, 128 insertions(+), 138 deletions(-)
---
base-commit: 4e5457fcbc14d21e7c004c3159e78fc63838029e
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next
change-id: 20261204-submit-docg3-oob-fixes-v1-3ac1e192f872

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


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

end of thread, other threads:[~2026-12-05  6:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  5:49 [PATCH 0/5] mtd: docg3: fix spare-area transfers and ECC reporting James Hilliard
2026-12-05  5:49 ` James Hilliard
2026-12-05  5:49 ` [PATCH 1/5] mtd: docg3: check whole-page OOB writes in the selected mode James Hilliard
2026-12-05  5:49   ` James Hilliard
2026-12-05  5:49 ` [PATCH 2/5] mtd: docg3: invalidate staged OOB on page write and block erase James Hilliard
2026-12-05  5:49   ` James Hilliard
2026-12-05  6:03   ` sashiko-bot
2026-12-05  5:49 ` [PATCH 3/5] mtd: docg3: correct BCH errors in the buffer holding the affected byte James Hilliard
2026-12-05  5:49   ` James Hilliard
2026-12-05  5:49 ` [PATCH 4/5] mtd: docg3: return the requested spare bytes in the selected OOB mode James Hilliard
2026-12-05  5:49   ` James Hilliard
2026-12-05  5:49 ` [PATCH 5/5] mtd: docg3: report the maximum bitflip count across read pages James Hilliard
2026-12-05  5:49   ` James Hilliard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.