U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] mtd: rawnand: sunxi: Fix user data length for H6
@ 2026-03-27 14:05 Richard Genoud
  2026-03-27 14:05 ` [PATCH v2 1/5] mtd: rawnand: sunxi: Replace hard coded value by a define Richard Genoud
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Richard Genoud @ 2026-03-27 14:05 UTC (permalink / raw)
  To: Dario Binacchi, Michael Trimarchi, Tom Rini, Andre Przywara
  Cc: Andrew Goodbody, Miquel Raynal, James Hilliard, Boris Brezillon,
	Thomas Petazzoni, u-boot, Richard Genoud

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.
But we have multiple choices:
- do like A10 like before (and not use all OOB)
- do like the vendor kernel (different from A10, but not using all OOB)
- use the whole OOB for user data bytes

In this second round, the third approach is implemented.

All patches but the 4th are code cleaning.
The 4th patch enables using a variable user data length for H6/H616
along with maximizing it.

A similar series has been accepted for Linux:
https://lore.kernel.org/lkml/20260317142437.580204-1-richard.genoud@bootlin.com/

Changes from v1:
- gather reviewed-by
- clean sunxi_nand_chip_init()
- use all possible remaining OOB space for user data bytes

Richard Genoud (5):
  mtd: rawnand: sunxi: Replace hard coded value by a define
  mtd: rawnand: sunxi: make the code mode self-explanatory
  mtd: rawnand: sunxi: clean sunxi_nand_chip_init()
  mtd: rawnand: sunxi: introduce variable user data length
  mtd: nand: raw: sunxi_spl: remove user data length reset

 drivers/mtd/nand/raw/sunxi_nand.c     | 292 +++++++++++++++++++-------
 drivers/mtd/nand/raw/sunxi_nand.h     |   3 +
 drivers/mtd/nand/raw/sunxi_nand_spl.c | 129 +++++++++---
 3 files changed, 324 insertions(+), 100 deletions(-)


base-commit: ba7bf918dafcd093ad733b07ba490baeb20cf5da

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-05-01 12:59 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-27 14:05 [PATCH v2 0/5] mtd: rawnand: sunxi: Fix user data length for H6 Richard Genoud
2026-03-27 14:05 ` [PATCH v2 1/5] mtd: rawnand: sunxi: Replace hard coded value by a define Richard Genoud
2026-04-27 11:14   ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 2/5] mtd: rawnand: sunxi: make the code mode self-explanatory Richard Genoud
2026-03-27 14:40   ` Michael Nazzareno Trimarchi
2026-04-27 12:23   ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 3/5] mtd: rawnand: sunxi: clean sunxi_nand_chip_init() Richard Genoud
2026-03-27 14:42   ` Michael Nazzareno Trimarchi
2026-04-27 12:35     ` Andre Przywara
2026-05-01 12:59       ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 4/5] mtd: rawnand: sunxi: introduce variable user data length Richard Genoud
2026-05-01 12:46   ` Andre Przywara
2026-03-27 14:05 ` [PATCH v2 5/5] mtd: nand: raw: sunxi_spl: remove user data length reset Richard Genoud
2026-05-01 12:47   ` Andre Przywara
2026-04-27 12:28 ` [PATCH v2 0/5] mtd: rawnand: sunxi: Fix user data length for H6 Andre Przywara
2026-04-27 12:31   ` Michael Nazzareno Trimarchi
2026-04-27 13:47     ` Andre Przywara
2026-04-27 14:10       ` Michael Nazzareno Trimarchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox