Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1990893imm; Thu, 24 May 2018 04:08:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZruk8uw7FtHp5vEperqzaQ85u3R/zSZKyazSYt1gD39vsWxDPlLH+Ww+199zWvU7LSGeNgg X-Received: by 2002:a62:d6da:: with SMTP id a87-v6mr6832593pfl.200.1527160120461; Thu, 24 May 2018 04:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527160120; cv=none; d=google.com; s=arc-20160816; b=sFbUqB+JX/Kfsl7GkqLPOvD3QpgjLiqWzYioSQYkadd6dOzQcadOWiud/RU5CgjDzU uOiwUft9g5beLA4oRWFu+KPs56Do8KF887lICQGA0vcM5ggjX+YUCok0f76CmTey03Jw emd2swm3Iao6N8sxWde85eWMA91suR+tyfkk3QO4+Wn14/mYV+3TvjZEofPJL7M5o+LU /FFTNC0vI/95mY5DgzzJlcLEq32ZtRLSZjnOaNbKXzqT7rOgC//hzht4bHtmJnEeJ07K A2BVoC1Cuc7zLGeKFQt2vqEjFaVsxvN2nxxUcXFmQFnRb07oup2E/MPE8LUxqG0Wx/p+ xriA== 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=4ZcuBQRTlZlPQ/AAWPusptc73WjfetXSRiuioMOMyU8=; b=gQ/0KbNLr1RMGeOtdlSVA/ybye/+7tfd5kHNErBxTYNMC3cDY6+IDwWhziYf/lZQVs wdL/EtaFKdXNBlneNA7K1FerwWIqoAusSAoDT8Vanyt0iB60D/H0k4yhn4H65esP/QHa 1sDcaC9PNMkzId+ajjpYX8Tz65uQi3mpuDSNxjSGQH2oZF7nsJSfjtbJCEeFr0FOMLNH 2syMsFLcG6jRmgDgSS5sSlzkKWiO1GHAjjPI+9eSLvrpB1pyUJb9bkIwYLGPXEANaAV9 cLctRyoJvYqHj+QfOyTKbcYKm6BQX6tcte1PHZU31XLo7SP7LohX29OKLsNlQRXWxc7L wSkA== 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 y7-v6si20203557plk.473.2018.05.24.04.08.24; Thu, 24 May 2018 04:08:40 -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 S1032945AbeEXLHp (ORCPT + 99 others); Thu, 24 May 2018 07:07:45 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51895 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032934AbeEXLHh (ORCPT ); Thu, 24 May 2018 07:07:37 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6A211207D2; Thu, 24 May 2018 13:07:35 +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 shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (chios.esd.ece.ntua.gr [147.102.5.180]) by mail.bootlin.com (Postfix) with ESMTPSA id 701AA2071B; Thu, 24 May 2018 13:07:33 +0200 (CEST) Date: Thu, 24 May 2018 13:07:31 +0200 From: Boris Brezillon To: Stefan Agner Cc: Benjamin Lindqvist , dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, Lucas Stach , miquel.raynal@bootlin.com, richard@nod.at, marcel@ziswiler.com, krzk@kernel.org, digetx@gmail.com, jonathanh@nvidia.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, Mirza Krak , linux-mtd@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [RESEND PATCH 2/5] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver Message-ID: <20180524130731.0c00094d@bbrezillon> In-Reply-To: References: <86fdf19ec92b732709732fb60199f16488b4b727.1526990589.git.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 Thu, 24 May 2018 13:00:41 +0200 Stefan Agner wrote: > > > > > Note that we're in fact using this patch set in Linux today, but > > we had to remove the oobsize inference part. Currently we're > > simply hard coding it to CFG_TVAL_4, but maybe it would be > > cleaner to add ECC algo as a board config instead, e.g. in the > > .dts file or whatever. This seems to be done by other vendors > > already, see for example excerpt of > > Documentation/devicetree/bindings/mtd/gpmc-nand.txt below: > > > > - ti,nand-ecc-opt: A string setting the ECC layout to use. One of: > > "sw" 1-bit Hamming ecc code via software > > "hw" use "ham1" instead > > "hw-romcode" use "ham1" instead > > "ham1" 1-bit Hamming ecc code > > "bch4" 4-bit BCH ecc code > > "bch8" 8-bit BCH ecc code > > "bch16" 16-bit BCH ECC code > > Refer below "How to select correct ECC scheme for your device ?" > > > > It seems as if this method would be equally applicable to Tegra NAND. > > Yeah, ideally we can reuse "nand-ecc-algo". Although, Reed-Solomon is > not yet in the list. So using this property would require to extend > this standard property. I'm okay with that ;-).