[PATCH 0/2] mtd: rawnand: vf610_nfc: fix the OOB of written pages and the command completion
Mehmet Fide
mehmet.fide at gmail.com
Fri Aug 28 01:53:38 PDT 2026
From: Mehmet Fide <mehmet.fide at 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
More information about the linux-mtd
mailing list