mtd: rawnand: sunxi: Fix user data length for H6
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 12 repliesIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | mtd: rawnand: sunxi: Replace hard coded value by a definedrivers/ drivers/ drivers/ | +38 | 1 reply | |
| 2/5 | mtd: rawnand: sunxi: make the code mode self-explanatorydrivers/ drivers/ | +16 | 2 replies | |
| 3/5 | mtd: rawnand: sunxi: clean sunxi_nand_chip_init()drivers/ | +18 | 3 replies | |
| 4/5 | mtd: rawnand: sunxi: introduce variable user data lengthdrivers/ drivers/ | +287 | 1 reply | |
| 5/5 | mtd: nand: raw: sunxi_spl: remove user data length resetdrivers/ | +0 | 1 reply |
Reviews trailers per patch
3 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Michael Trimarchi | Andre Przywara |
|---|---|---|
| 1/5 | R-b | A-b |
| 2/5 | R-b | A-b |
| 3/5 | ||
| 4/5 | ||
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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