diff options
| author | James Hilliard <james.hilliard1@gmail.com> | 2026-08-11 00:02:00 -0600 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-09-04 20:05:57 +0200 |
| commit | bde8fd880d84627072c224729c818306c4b30d58 (patch) | |
| tree | e8e5bbb8ed8f3c9b4feecf7a8362a013ede113b2 /scripts/Makefile.thinlto | |
| parent | 8696502b0aa96bcbb1f1e78ae117726378823ae8 (diff) | |
| download | linux-next-bde8fd880d84627072c224729c818306c4b30d58.tar.gz linux-next-bde8fd880d84627072c224729c818306c4b30d58.zip | |
mtd: rawnand: sunxi: reserve a full user-data word for BBM
H6/H616 protected user-data lengths are encoded in four-byte units,
but ECC maximization reserves only the two bad block marker bytes. A
strength leaving fewer than four bytes therefore selects a zero-byte
first user-data section.
The OOB layout then subtracts the two marker bytes from that unsigned
zero length, and the controller has no protected user-data word in which
to store the marker.
Reserve one complete user-data word while maximizing ECC, reject
configurations which produce no ECC sectors or a shorter first section,
and make the OOB iterator bounds-safe.
Fixes: 54dcd6aa69db ("mtd: rawnand: sunxi: introduce maximize variable user data length")
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
