Skip to content

Refactor bch settings and support large oob NAND

Han Xu linux-mtd 3 versions – Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 5 repliesApplied
  2. v34 patches 5 repliesSuperseded
  3. v22 patches 2 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/5mtd: rawnand: gpmi: Refactor bch geometry settings functiondrivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c+20 -121 reply
2/5mtd: rawnand: gpmi: Add strict ecc strength checkdrivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c+14 -11 reply
3/5mtd: rawnand: gpmi: Uninline the gpmi_check_ecc functiondrivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c+1 -11 reply
4/5mtd: rawnand: gpmi: Rename the variable ecc_chunk_sizedrivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h+34 -271 reply
5/5mtd: rawnand: gpmi: Add large oob bch setting supportdrivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h+197 -51 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchSean Nyekjaer
1/5T-b
2/5
3/5
4/5
5/5

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

Read the v4 thread

Cover letter [PATCH v4 0/5] Refactor bch settings and support large oob NAND

These series of patches refactor the gpmi bch setting function and introduce a new way to set bch for large oob(oobsize > 1KB) NAND.

Code changes don't affect the default bch behavior but users may add DT flag to use NAND chips required minimum ecc strength. More strict ecc strength check added to make sure ecc strength is strong enough. For some NAND chips that oobsize larger than 1KB, a new way to set bch was introduced, which may use a separate ecc for meta. In this case, the data0_size in BCH_FLASH0LAYOUT0 and datan_size in BCH_FLASH0LAYOUT1 need to be presented in dedicate variables.

Han Xu (5):
mtd: rawnand: gpmi: Refactor bch geometry settings function
mtd: rawnand: gpmi: Add strict ecc strength check
mtd: rawnand: gpmi: Uninline the gpmi_check_ecc function
mtd: rawnand: gpmi: Rename the variable ecc_chunk_size
mtd: rawnand: gpmi: Add large oob bch setting support

 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 296 ++++++++++++++++++---
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h |  12 +-
 2 files changed, 264 insertions(+), 44 deletions(-)
Signature · 6 lines
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/