[PATCH 0/6] mtd: rawnand: sunxi: Fixes user data length for H6

From: Richard Genoud

Date: Fri Feb 20 2026 - 11:10:36 EST


This series introduces the correct usage of user data length for
H6/H616.
If the older SoCs must use a fixed value of 4 user data bytes for each
ECC step, the H6 can have a different value for each step.

In the first round, the behavior was kept as the one used by A10 when in
fact the images in the wild with the vendor kernel are using a different
layout.

The first patches are fixes/code cleaning and the last one enables using
a variable user data length for H6/H616

Richard Genoud (6):
mtd: rawnand: sunxi: fix sunxi_nand_ooblayout_free
mtd: rawnand: sunxi: fix sunxi_nfc_hw_ecc_read_extra_oob
mtd: rawnand: sunxi: do not count BBM bytes twice
mtd: rawnand: sunxi: replace hard coded value by a define - take2
mtd: rawnand: sunxi: make the code mode self-explanatory
mtd: rawnand: sunxi: introduce variable user data length

drivers/mtd/nand/raw/sunxi_nand.c | 299 +++++++++++++++++++++++-------
1 file changed, 227 insertions(+), 72 deletions(-)


base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b