Skip to content

mtd: rawnand: sunxi: Fix user data length for H6

Richard Genoud u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 12 repliesIn review
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mtd: rawnand: sunxi: Replace hard coded value by a definedrivers/mtd/nand/raw/sunxi_nand.c drivers/mtd/nand/raw/sunxi_nand.h drivers/mtd/nand/raw/sunxi_nand_spl.c+38 -301 reply
2/5mtd: rawnand: sunxi: make the code mode self-explanatorydrivers/mtd/nand/raw/sunxi_nand.c drivers/mtd/nand/raw/sunxi_nand_spl.c+16 -102 replies
3/5mtd: rawnand: sunxi: clean sunxi_nand_chip_init()drivers/mtd/nand/raw/sunxi_nand.c+18 -233 replies
4/5mtd: rawnand: sunxi: introduce variable user data lengthdrivers/mtd/nand/raw/sunxi_nand.c drivers/mtd/nand/raw/sunxi_nand_spl.c+287 -551 reply
5/5mtd: nand: raw: sunxi_spl: remove user data length resetdrivers/mtd/nand/raw/sunxi_nand_spl.c+0 -171 reply

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchMichael TrimarchiAndre Przywara
1/5R-b A-b
2/5R-b A-b
3/5
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] mtd: rawnand: sunxi: Fix user data length for H6

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/[email protected]/

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