Re: [PATCH] mtd: rawnand: copy OOB only after completing read retries
From: Miquel Raynal
Date: Thu Nov 19 2026 - 07:37:18 EST
On Tue, 03 Nov 2026 23:09:45 -0700, James Hilliard wrote:
> nand_do_read_ops() copies OOB to the caller and advances the output cursor
> before deciding whether an ECC failure requires another read attempt.
> The retry restores ECC statistics but does not restore the OOB cursor or
> remaining length.
>
> For a combined data/OOB read, a successful retry can therefore leave OOB
> from the failed attempt in the first output slot and put the retried
> page's OOB in the next page's slot. A later transport error also leaves
> oobretlen accounting for attempts rather than completed pages.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: copy OOB only after completing read retries
commit: b02489cea8ce609ea920246b533df0383aa05092
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl