diff options
| author | 2026-09-04 16:17:58 -0600 | |
|---|---|---|
| committer | 2026-09-09 09:54:09 +0200 | |
| commit | c56d52865624ca236c44838ef9366a8597b6af6c (patch) | |
| tree | d61a1b8d250a9b2b314b4c228f305bc0d7d0b8cf /scripts/Makefile.thinlto | |
| parent | mtd: rawnand: sunxi: reject ECC maximization on small pages (diff) | |
mtd: rawnand: sunxi: fix free OOB section offsets
The sunxi hardware ECC OOB layout places protected user data before the
ECC bytes for every step. Since variable user-data lengths were
introduced, free sections after the first use sunxi_get_ecc_offset(),
which skips the protected user data and points at the ECC bytes instead.
As a result, the MTD free-OOB interface addresses ECC bytes rather than
the protected user data for those sections. Use sunxi_get_oob_offset() to
point each free section at the beginning of its protected user data. Keep
the special two-byte offset for section zero to reserve the bad block
marker.
Fixes: 54dcd6aa69db ("mtd: rawnand: sunxi: introduce maximize variable user data length")
Cc: stable@vger.kernel.org
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
