aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJames Hilliard <james.hilliard1@gmail.com>2026-09-04 16:17:58 -0600
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-09-09 09:54:09 +0200
commitc56d52865624ca236c44838ef9366a8597b6af6c (patch)
treed61a1b8d250a9b2b314b4c228f305bc0d7d0b8cf /scripts/Makefile.thinlto
parentmtd: 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