mtd: rawnand: add Reed-Solomon error correction algorithm
PATCH v2 1/6 mtd: rawnand: add Reed-Solomon error correction algorithm
Add Reed-Solomon (RS) to the enumeration of ECC algorithms.
Signed-off-by Stefan Agner <[email protected]>
--- drivers/mtd/nand/raw/nand_base.c | 1 + include/linux/mtd/rawnand.h | 1 + 2 files changed, 2 insertions(+)
drivers/mtd/nand/raw/nand_base.c +1 -0
@@ -5744,6 +5744,7 @@ static int of_get_nand_ecc_mode(struct device_node *np)static const char *const nand_ecc_algos[] = { [NAND_ECC_HAMMING ] ="hamming" , [NAND_ECC_BCH ] ="bch" , + [NAND_ECC_RS ] ="rs" , };static int of_get_nand_ecc_algo (struct device_node *np)
include/linux/mtd/rawnand.h +1 -0
@@ -114,6 +114,7 @@ enum nand_ecc_algo {NAND_ECC_UNKNOWN ,NAND_ECC_HAMMING ,NAND_ECC_BCH , + NAND_ECC_RS, };/*
Signature · 1 line
2.17.0