[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180601092600.03c14f53@bbrezillon>
Date: Fri, 1 Jun 2018 09:26:00 +0200
From: Boris Brezillon <boris.brezillon@...tlin.com>
To: Stefan Agner <stefan@...er.ch>
Cc: dwmw2@...radead.org, computersforpeace@...il.com,
marek.vasut@...il.com, robh+dt@...nel.org, mark.rutland@....com,
thierry.reding@...il.com, benjamin.lindqvist@...ian.se,
pgaikwad@...dia.com, dev@...xeye.de, mirza.krak@...il.com,
richard@....at, pdeschrijver@...dia.com,
linux-kernel@...r.kernel.org, krzk@...nel.org,
jonathanh@...dia.com, devicetree@...r.kernel.org,
linux-mtd@...ts.infradead.org, marcel@...wiler.com,
miquel.raynal@...tlin.com, linux-tegra@...r.kernel.org,
digetx@...il.com
Subject: Re: [PATCH v3 1/6] mtd: rawnand: add Reed-Solomon error correction
algorithm
On Fri, 1 Jun 2018 00:16:32 +0200
Stefan Agner <stefan@...er.ch> wrote:
> Add Reed-Solomon (RS) to the enumeration of ECC algorithms.
>
> Signed-off-by: Stefan Agner <stefan@...er.ch>
Reviewed-by: Boris Brezillon <boris.brezillon@...tlin.com>
> ---
> drivers/mtd/nand/raw/nand_base.c | 1 +
> include/linux/mtd/rawnand.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
> index f28c3a555861..9eb5678dd6d0 100644
> --- a/drivers/mtd/nand/raw/nand_base.c
> +++ b/drivers/mtd/nand/raw/nand_base.c
> @@ -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)
> diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h
> index 5dad59b31244..6a82da8c44ce 100644
> --- a/include/linux/mtd/rawnand.h
> +++ b/include/linux/mtd/rawnand.h
> @@ -114,6 +114,7 @@ enum nand_ecc_algo {
> NAND_ECC_UNKNOWN,
> NAND_ECC_HAMMING,
> NAND_ECC_BCH,
> + NAND_ECC_RS,
> };
>
> /*
Powered by blists - more mailing lists