Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp288250imm; Fri, 1 Jun 2018 00:27:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKbatiOTdq/+Z3BcS9E3uLQ0tpWBfONiSX4L08muaU39O78kczIIK6SFXptp9Wq/I9X8Wg3 X-Received: by 2002:a63:770b:: with SMTP id s11-v6mr8057555pgc.339.1527838071648; Fri, 01 Jun 2018 00:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527838071; cv=none; d=google.com; s=arc-20160816; b=VsqhfZdn49yhT0oEsdAMoeS9ucMrJp6fta5JF0r3gSobxwGXYEmWJPcv+AXNn0mqnx R6eIAHKqni/xA+FxHO+7NvszGqcejsJMjkL0pnLJw1ig4K8C3roIrEVJLvZdNYh1+Eg7 ZCiNIS3lQlUgMCODEYa02ridzvK0ZhwqAeKu8ZjXlOJkeeY3fGADMbFaI5zF1VUhB3GM wAeW07lvtXhkvDV73FwbFWYzQ6G/xz/CDpvNJSVI4IF4YUu6pDmr84G99d26SGL4rZZx UDZKJbIfeFIoyEdLyyefvvaYTua8o6maaXQY+UxqGxiYCtXjgiLnEMl+kpSjwvUiqmRm 0PEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=MYjWqx3/reSv0Ob24tQmuSHKDj6MnQP3UWQP3B14h4w=; b=IQznn4pYoqxMJ9PY69DuIH70s1miijtWO+JGwZO/2wbTsEiteHqcGhJUEOF+KuckOr 3bCdKGEG/fjZBvx6ESaVVpFbwViLbUTKyZs+UoK7Fw2AMRKhCUC3rWQhBIc38TbCGFkA HFJDDqAtXv0P16ujQZfcfeUiNDd5i4pEBvn7dYPy8Sqyj4KOZzJOSMIaHFvn6shBQKiB br98bVrQ0FpwD9vX1i6MC/Yhf2SY1dbyPouOgUqL3VkGEyMaWksoea/nP1j8I6mQ0iMl sX8L+LWUO8HNQ94Dm/mH0vnDX8SkFAZuwVE14vrCIbjWMcajMUd2UEu54DsiJ5FZ5nOw 5gtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7-v6si8762082pgf.58.2018.06.01.00.27.37; Fri, 01 Jun 2018 00:27:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751311AbeFAH0F (ORCPT + 99 others); Fri, 1 Jun 2018 03:26:05 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42709 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbeFAH0D (ORCPT ); Fri, 1 Jun 2018 03:26:03 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 02EDB20728; Fri, 1 Jun 2018 09:26:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-125-111.w90-88.abo.wanadoo.fr [90.88.63.111]) by mail.bootlin.com (Postfix) with ESMTPSA id 864BC203B0; Fri, 1 Jun 2018 09:26:00 +0200 (CEST) Date: Fri, 1 Jun 2018 09:26:00 +0200 From: Boris Brezillon To: Stefan Agner Cc: dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com, benjamin.lindqvist@endian.se, pgaikwad@nvidia.com, dev@lynxeye.de, mirza.krak@gmail.com, richard@nod.at, pdeschrijver@nvidia.com, linux-kernel@vger.kernel.org, krzk@kernel.org, jonathanh@nvidia.com, devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, marcel@ziswiler.com, miquel.raynal@bootlin.com, linux-tegra@vger.kernel.org, digetx@gmail.com Subject: Re: [PATCH v3 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm Message-ID: <20180601092600.03c14f53@bbrezillon> In-Reply-To: <20180531221637.6017-2-stefan@agner.ch> References: <20180531221637.6017-1-stefan@agner.ch> <20180531221637.6017-2-stefan@agner.ch> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Jun 2018 00:16:32 +0200 Stefan Agner wrote: > Add Reed-Solomon (RS) to the enumeration of ECC algorithms. > > Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon > --- > 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, > }; > > /*