[PATCH] mtd: rawnand: sunxi: fix free OOB section offsets

Miquel Raynal miquel.raynal at bootlin.com
Wed Sep 9 00:54:45 PDT 2026


On Fri, 04 Sep 2026 16:17:58 -0600, James Hilliard wrote:
> 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.
> 
> [...]

Applied to nand/next, thanks!

[1/1] mtd: rawnand: sunxi: fix free OOB section offsets
      commit: c56d52865624ca236c44838ef9366a8597b6af6c

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




More information about the linux-arm-kernel mailing list