Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2036224imm; Thu, 24 May 2018 04:55:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrSCvZUWmRHq9VABqS2eciXfgDNgQfHwnM6K96w7mRyKRuPiQuNH/kfS3KubxpL+tJp30NE X-Received: by 2002:a63:a902:: with SMTP id u2-v6mr5595387pge.169.1527162911004; Thu, 24 May 2018 04:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527162910; cv=none; d=google.com; s=arc-20160816; b=OSDQLHhfi7NGtw5e6Bcf0eRPVmmp9bLaqJFHxMiGSOR6F20KZ+CJW7h5IfjjYyJaTV JzgcMszjky2fTwbfVTPFDlGrft+bFANFfx2EocRdmxYVl63DuxOsxCDrur0870VVOx+n hNEfq384RjfKSAagmyirHDfb/F86vQdWNGRef5XAsmDaKGXupcSySb1IFf1118AxHGs2 CMIDwElZ+Dt+ALtT1MivbRF5zrh87Gm7rNgAz/bONjggP0gG9bI7uj3BDj0viK03JT5d dfvLDUycUegIY+2wxI2ZPRx/lPRgtkeewr+RbQS4mTUqJjC5u0Wz+DdHuq5kpWWEMorg eurw== 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=U9NPVonelq0mrlE4Ov2WqZzykzfX4cKTRTUVbUTO6ew=; b=FVVtfxJNRt6m0tAk50xElupHNFjQCiZ8/K5paVLODSJKSgpbPfgZ/CSfg6FgyfUGeI Lmyb2yWT95SO62Kd/ObNC1tw57zbkArp2grMZ41eYANT5fWNhjcOjR/8sQWLU3bqhcVm +5MoZUdtEvA1Vb59L58Ffuhk4cbFuMCe1VbFDid2uLJNslEQG7rsRgqkO2EfRqtI44mh J+tkygEy8Ee/1ORNdDRGbIBiRIAaPwYpyV/oWL0x2Q1Kb+vbt/4TlvHS7bZf8bbrzmt5 lnSO87YO8KY/tb6XOviBi0OILrsqVcHh4dJFtLdRO7enbPF2hISUBTAIynDl8N2o6JaJ ltOg== 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 1-v6si20361748plz.101.2018.05.24.04.54.56; Thu, 24 May 2018 04:55:10 -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 S1033164AbeEXLyA (ORCPT + 99 others); Thu, 24 May 2018 07:54:00 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54211 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966666AbeEXLxu (ORCPT ); Thu, 24 May 2018 07:53:50 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 49A3E20874; Thu, 24 May 2018 13:53:49 +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 511EB20741; Thu, 24 May 2018 13:53:37 +0200 (CEST) Date: Thu, 24 May 2018 13:53:35 +0200 From: Boris Brezillon To: Benjamin Lindqvist Cc: Stefan Agner , 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: <20180524135335.6aa0b7a4@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 Hi Benjamin, On Thu, 24 May 2018 13:30:14 +0200 Benjamin Lindqvist wrote: > Hi Stefan, > > It seems to me that a probe similar to what the BootROM does shouldn't > be awfully complicated to implement - just cycle through the switch > cases in case of an ECC error. But I guess that's more of an idea for > further improvements rather than a comment to the patch set under > review. Nope, not really an option, because you're not guaranteed that the NAND will be used as a boot media, and the first page or first set of pages might just be erased. > > However, I think that allowing for an override of the oobsize > inference would be a good idea before merging, no? This could just be > a trivial #ifdef (at least temporarily). If you agree but don't feel > like doing it yourself, I'd be happy to pitch in. Let me know. That's why we have nand-ecc-xxx properties in the DT. Regards, Boris