Skip to content

mtd: nand: add enum nand_ecc_algo

Rafał Miłecki linux-devicetree linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 4 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mtd: nand: add new enum for storing ECC algorithminclude/linux/mtd/nand.h+7 -00 replies
2/4of: mtd: prepare helper reading NAND ECC algo from DTdrivers/of/of_mtd.c include/linux/of_mtd.h+42 -00 replies
3/4mtd: nand: set ECC algorithm in nand_dt_initdrivers/mtd/nand/nand_base.c+5 -10 replies
4/4mtd: nand: nandsim: set ECC algorithm explicitlydrivers/mtd/nand/nandsim.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 0/4] mtd: nand: add enum nand_ecc_algo

Some time ago I started working on a new "nand-ecc-algo" property to allow specifying ECC algorithm for hardware ECC mode as well.
Boris pointed out it's becoming a bit messy that way as we already have value NAND_ECC_SOFT_BCH.
I suggested deprecating "soft_bch" value from nand-ecc-mode property and got Boris agreed and no objections from others. So there is how I want to implement this.
If you agree on this way & apply my patches, I'll start modifying NAND drivers (similarly to the nandsim) and then will try to drop NAND_ECC_SOFT_BCH except for handling backward compatibility.
Then finally we should be able to add "nand-ecc-algo" property support properly.

V2: Add of_get_nand_ecc_algo helper (in 2/4) instead of this slightly hacky code
in nand_dt_init that would be replaced anyway.

Rafał Miłecki (4):
mtd: nand: add new enum for storing ECC algorithm
of: mtd: prepare helper reading NAND ECC algo from DT
mtd: nand: set ECC algorithm in nand_dt_init
mtd: nand: nandsim: set ECC algorithm explicitly

 drivers/mtd/nand/nand_base.c |  6 +++++-
 drivers/mtd/nand/nandsim.c   |  2 ++
 drivers/of/of_mtd.c          | 36 ++++++++++++++++++++++++++++++++++++
 include/linux/mtd/nand.h     |  7 +++++++
 include/linux/of_mtd.h       |  6 ++++++
 5 files changed, 56 insertions(+), 1 deletion(-)
Signature · 6 lines
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html