Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp375258imm; Fri, 1 Jun 2018 02:26:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJfjmKCgNaRnFwu2ay813IhkrqdhkH8R6MplqCrvZRZeVhRescosmEGbw9hIlhwLgJ2bWIa X-Received: by 2002:a63:715d:: with SMTP id b29-v6mr8491650pgn.325.1527845178182; Fri, 01 Jun 2018 02:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527845178; cv=none; d=google.com; s=arc-20160816; b=knEaJHuKI6oQEH+N9ssZlPOMtUaIgbX8+v+ng+nJd2ScvnbK/kqCJGIeEXTwJMkaBZ J+0bL7tvPKPwUoHbbcMzsQjfvFjSi12x1ZMheVffbxq2lPgUcL0h8EzcToKoMn3Uq+bN x0uZxdHP+ILuW5m1gGi/mIZaPwxx9KXLCasOABhl4/uA+kUOOEiIQGUzS/EQh52YyKTg Z6hNXP+KvK6zrs0BlxaoKjmgzYZ4D/iV9pd++Eg2OZczKV+xvS4nCUVdneFzhpVHY4U/ bl9VFJA8LeREVA4dREwmgGyNWW8KVdHWI3Czen64hlDK5rnH94NQ0qhtjwOYpHJVGX+2 hNlw== 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=5Qt6E+lR8fbqkTgaIqh9caAvmoeDWCcEVZHl2EzlJHk=; b=H1VHk9L4oN7T1C+vN6kJuYhUI9ZfEkqD5UXJ5Sz8n0qNlbPUxP+C1IEZbwsyQzhfyL b5AtcdhFQyE5hwxjH7FK4iyRJk+9DCwGomQLLF8uonftGTJ0dpKy+epb+is1SLJfGvE0 BRM84jPsG6mVmd8/YjuW2Vo7ikKVceI0jtAo3lhOmwogX89J2Jat+ZixzXA7QMiRJng4 +Tu6PQmKzk6GEx/+qvU51kwzqUhROgNE2RNZ66MQOlGgZJiNc53RvIRH2CqX0o/h2VVz JueMnnGMWPPJSNQNiAPnZWxWFH8GupvhAVYCqtQKGqurWQC28D+94MWKSa2al+7Zhf6k aHuQ== 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 3-v6si38489019plx.591.2018.06.01.02.26.04; Fri, 01 Jun 2018 02:26:18 -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 S1751342AbeFAJZU (ORCPT + 99 others); Fri, 1 Jun 2018 05:25:20 -0400 Received: from mail.bootlin.com ([62.4.15.54]:45688 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750740AbeFAJZS (ORCPT ); Fri, 1 Jun 2018 05:25:18 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id F078A2079C; Fri, 1 Jun 2018 11:25:16 +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 787B82069C; Fri, 1 Jun 2018 11:25:06 +0200 (CEST) Date: Fri, 1 Jun 2018 11:25:06 +0200 From: Boris Brezillon To: Stefan Agner Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, pgaikwad@nvidia.com, dev@lynxeye.de, mirza.krak@gmail.com, benjamin.lindqvist@endian.se, pdeschrijver@nvidia.com, miquel.raynal@bootlin.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, jonathanh@nvidia.com, marek.vasut@gmail.com, thierry.reding@gmail.com, linux-mtd@lists.infradead.org, krzk@kernel.org, richard@nod.at, linux-tegra@vger.kernel.org, digetx@gmail.com, computersforpeace@gmail.com, dwmw2@infradead.org, marcel@ziswiler.com Subject: Re: [PATCH v3 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm Message-ID: <20180601112506.2157e8b0@bbrezillon> In-Reply-To: <20180601092600.03c14f53@bbrezillon> References: <20180531221637.6017-1-stefan@agner.ch> <20180531221637.6017-2-stefan@agner.ch> <20180601092600.03c14f53@bbrezillon> 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 09:26:00 +0200 Boris Brezillon wrote: > 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 + Hm, you forgot to update Documentation/devicetree/bindings/mtd/nand.txt. > > 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, > > }; > > > > /* > > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/