Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp602711imm; Fri, 1 Jun 2018 06:35:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL1fl33a0gfdqvosj+j5p9ABywnSCJc/5OMi7xYAgpaFQC2QG9pliCtHnSQeL77rNb/PRfB X-Received: by 2002:a17:902:5a09:: with SMTP id q9-v6mr5566078pli.300.1527860139578; Fri, 01 Jun 2018 06:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527860139; cv=none; d=google.com; s=arc-20160816; b=n/HldtdVFC84+09h3LR0KWlhq1vL+F0d9JUygy6GuLjMGSzklUhBCYBERWqZIZAnIt 71LxoJK2XQH8AW0eyKkuwRiJ/WY2WaVGRVdhRSn0h24GTDhJCq5mKn42SRGKLfVr5y/3 cn2av2ppQcgLGoppoOPdMvD95n4HKu0x+0YLeOXmK4ttOHVnGBqwhHVm5yLEOnSaN7QP 6flPU33590k/YGUNKhKBKayEl5gonAGGG0Mj+awDbxpC9pA1gUKJCk712nl53LCuvYz9 qF+spPyTLAAE5eXyeiYgYnx4c+ODUQw/P9OT2Yb3WggXElQNIloJkyuEENqA/DiMYcwG T4ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=cSDnd1LemndPX7E7v+vrYQ3pZ2cAiysZaAYCh6zHUSg=; b=D/+hVfaNleds+1d5VMHmE0y5xwydAkxXzdz6gmf1XRuVTvZf3dPxdSVmStka8/VnyP FET/fRcM3OuP3YxGJpZrQ9qIImW6rUoWEe1C3iRpWETXuS4AC0VI32SURzYSz77RlwVf vYF4Tc+s6P1FDMtuW9aGQ6wVM5SQoeiOS6S15wu7rKF6zbAYb07ON2h8hOsJ21WsGlqb vZDvlcTafsjT/y0J3LCsX4b0lWppKdqXSkOzCgeW7weov131E2KhAMXPbir1GLLjk208 i+51GUDrkAejwKCJe8y2IIL67NBDe3NSY/xdYNgEKtYVdeubMdYjf62AVy+RJoQA5X6b 382w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=mp1+WdCC; 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 z13-v6si3574396pfm.330.2018.06.01.06.35.23; Fri, 01 Jun 2018 06:35:39 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=mp1+WdCC; 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 S1752017AbeFANek (ORCPT + 99 others); Fri, 1 Jun 2018 09:34:40 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:47026 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751346AbeFANeh (ORCPT ); Fri, 1 Jun 2018 09:34:37 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 40F695C010C; Fri, 1 Jun 2018 15:34:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1527860075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cSDnd1LemndPX7E7v+vrYQ3pZ2cAiysZaAYCh6zHUSg=; b=mp1+WdCCu7DRWlk1DIWR9nlRVDttOY8+AKfD105G9qvXP/+uTHuJd/ji6svREmaJbk5i3c FTYoHiQrD3cTeF3146Ye9I4grflZIw0dpoRfwiEdPbZB1dd/87D1rEq88L9eqfHLQiZJp2 zlnhiHCFrJW6hAqjr4zhlmOXcc4al6o= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Fri, 01 Jun 2018 15:34:33 +0200 From: Stefan Agner To: Boris Brezillon 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 In-Reply-To: <20180601112506.2157e8b0@bbrezillon> References: <20180531221637.6017-1-stefan@agner.ch> <20180531221637.6017-2-stefan@agner.ch> <20180601092600.03c14f53@bbrezillon> <20180601112506.2157e8b0@bbrezillon> Message-ID: <18ce3100aabf42059dbd514fb8c93e84@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-3.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWELVE(0.00)[22]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; ASN(0.00)[asn:29691, ipnet:2a02:418::/29, country:CH]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.06.2018 11:25, Boris Brezillon wrote: > 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. > Yeah I was not sure about that. Currently it says: - nand-ecc-algo: string, algorithm of NAND ECC. Supported values are: "hamming", "bch". Is supported meant by software ECC here? I feel "supported" is a rather strong word since it is clearly controller dependent whether it is actually supported... -- Stefan >> > 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/