summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/nand_base.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-06-24 23:27:22 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-07-02 09:01:41 +0200
commitf308d7353d1f5c3ddedc784a367edc72fc51bbaa (patch)
tree2a2ef32716ef30020ca9bef81787fe1f44e81048 /drivers/mtd/nand/raw/nand_base.c
parentmtd: rawnand: hynix: fix decoding the OOB size on H27UCG8T2BTR (diff)
downloadlinux-f308d7353d1f5c3ddedc784a367edc72fc51bbaa.tar.xz
linux-f308d7353d1f5c3ddedc784a367edc72fc51bbaa.zip
mtd: rawnand: add Reed-Solomon error correction algorithm
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/nand_base.c')
-rw-r--r--drivers/mtd/nand/raw/nand_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
index b01d15ec4c56..d0af5347f89d 100644
--- a/drivers/mtd/nand/raw/nand_base.c
+++ b/drivers/mtd/nand/raw/nand_base.c
@@ -5777,6 +5777,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)