Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: rawnand: vf610_nfc: fix the OOB of written pages and the command completion
@ 2026-08-28  8:53 Mehmet Fide
  2026-08-28  8:53 ` [PATCH 1/2] mtd: rawnand: vf610_nfc: write the OOB bytes on page writes Mehmet Fide
  2026-08-28  8:53 ` [PATCH 2/2] mtd: rawnand: vf610_nfc: rearm the completion before starting a command Mehmet Fide
  0 siblings, 2 replies; 3+ messages in thread
From: Mehmet Fide @ 2026-08-28  8:53 UTC (permalink / raw)
  To: Miquel Raynal
  Cc: Stefan Agner, Richard Weinberger, Vignesh Raghavendra,
	Boris Brezillon, Bill Pringlemeir, Brian Norris, Alexey Klimov,
	linux-mtd, linux-kernel

From: Mehmet Fide <mehmet.fide@screeningeagle.com>

Two pre-existing issues found while checking the Sashiko report Miquel
pointed at on the large-OOB series [1]; they are independent of that
fix, so they come separately.

The first has been there since the ->exec_op() conversion: the ECC page
write transfers the spare area out of the controller SRAM but nothing
ever puts chip->oob_poi there, so every written page gets whatever the
previous transfer left behind as its OOB. The second is as old as the
driver: a command that timed out can still complete cmd_done from its
late interrupt, and the next command then returns before the hardware
is done.

Tested on a Colibri VF50 and a Colibri VF61 on top of the large-OOB v2
series: UBIFS write/read-back intact, clean ECC counters.

[1] https://lore.kernel.org/linux-mtd/20260818114208.2780311-1-mehmet.fide@gmail.com/


Mehmet Fide (2):
  mtd: rawnand: vf610_nfc: write the OOB bytes on page writes
  mtd: rawnand: vf610_nfc: rearm the completion before starting a
    command

 drivers/mtd/nand/raw/vf610_nfc.c | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.54.0


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2026-08-28  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-28  8:53 [PATCH 0/2] mtd: rawnand: vf610_nfc: fix the OOB of written pages and the command completion Mehmet Fide
2026-08-28  8:53 ` [PATCH 1/2] mtd: rawnand: vf610_nfc: write the OOB bytes on page writes Mehmet Fide
2026-08-28  8:53 ` [PATCH 2/2] mtd: rawnand: vf610_nfc: rearm the completion before starting a command Mehmet Fide

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