Skip to content

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

Richard Genoud linux-arm-kernel linux-mtd linux-sunxi lkml 3 versions – Applied

Status from this message: Applied to nand/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 3 repliesApplied
  2. v26 patches 7 repliesSuperseded
  3. v16 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- fix typos in commit messages
- add a patch fixing typos in code comments
- add a patch to remove some dead code in sunxi_nand_ooblayout_free()
- add a patch to change an error prone variable name
- maximize user data length instead of relying on vendor layout

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/9mtd: rawnand: sunxi: sunxi_nand_ooblayout_free code clarificationdrivers/mtd/nand/raw/sunxi_nand.c+2 -21 reply
2/9mtd: rawnand: sunxi: fix sunxi_nfc_hw_ecc_read_extra_oobdrivers/mtd/nand/raw/sunxi_nand.c+3 -30 replies
3/9mtd: rawnand: sunxi: do not count BBM bytes twicedrivers/mtd/nand/raw/sunxi_nand.c+20 -30 replies
4/9mtd: rawnand: sunxi: replace hard coded value by a define - take2drivers/mtd/nand/raw/sunxi_nand.c+2 -20 replies
5/9mtd: rawnand: sunxi: make the code more self-explanatorydrivers/mtd/nand/raw/sunxi_nand.c+11 -80 replies
6/9mtd: rawnand: sunxi: remove dead codedrivers/mtd/nand/raw/sunxi_nand.c+7 -141 reply
7/9mtd: rawnand: sunxi: change error prone variable namedrivers/mtd/nand/raw/sunxi_nand.c+6 -50 replies
8/9mtd: rawnand: sunxi: fix typos in commentsdrivers/mtd/nand/raw/sunxi_nand.c+2 -20 replies
9/9mtd: rawnand: sunxi: introduce maximize variable user data lengthdrivers/mtd/nand/raw/sunxi_nand.c+257 -640 replies

Reviews trailers per patch

4 of 9 patches have a Reviewed-by or Acked-by.

PatchJernej SkrabecChen-Yu Tsai
1/9R-b
2/9R-b
3/9
4/9R-b
5/9A-b
6/9
7/9
8/9
9/9

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

Read the v3 thread

Cover letter [PATCH v3 0/9] mtd: rawnand: sunxi: Fixes 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.

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

Changes from v2:
- fix typos in commit messages
- add a patch fixing typos in code comments
- add a patch to remove some dead code in sunxi_nand_ooblayout_free()
- add a patch to change an error prone variable name
- maximize user data length instead of relying on vendor layout

Changes from v1:
- gather Reviewed-by/Acked-by
- rework patch 1 subject (more a code clarification than a fix)
- fix typo in patch 2
- remove patch 4 Fixes since it's not really a fix

Richard Genoud (9):
mtd: rawnand: sunxi: sunxi_nand_ooblayout_free code clarification
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 more self-explanatory
mtd: rawnand: sunxi: remove dead code
mtd: rawnand: sunxi: change error prone variable name
mtd: rawnand: sunxi: fix typos in comments
mtd: rawnand: sunxi: introduce maximize variable user data length

 drivers/mtd/nand/raw/sunxi_nand.c | 381 +++++++++++++++++++++++-------
 1 file changed, 294 insertions(+), 87 deletions(-)

base-commit: 11439c4635edd669ae435eec308f4ab8a0804808