Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2067492imm; Thu, 24 May 2018 05:20:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqRZ9oRC+Av9p5u2DcPNz5fdxmpTRmomLXppGECwJVrQgHmas3YowYo8YsO7PSlvl9VZmk0 X-Received: by 2002:a65:4e8b:: with SMTP id b11-v6mr5590329pgs.392.1527164420024; Thu, 24 May 2018 05:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527164419; cv=none; d=google.com; s=arc-20160816; b=NjdEGDP5OrQNiBOzC5vVSah8ZXhfHfcvQrG69+eCBEBMJAoOFkEGcoClUWI+Up6qiA djRk15GAIcKqXuj90CYATHgfCCmRx+hgIQrWE8/ksYCWP0n4wrHWOYMW3+dPU2kvzKW8 40Tgx1c2HEuflZwXHAVdyvRrg/xPh40clZdQitu8Rutn2ij8/qOLpjwdD43smKYtu2f2 2uqydHMKA+oJv8ceE+b/tAwT6o/Q3ZMSL2DbAnvmM7xpsDvWr7gpQf9zt7X7Pfsw7dlN LeeuOW/36STK03PMVQUaX6fk0kGEqKRqAWC195K3YWWl0G5mlvilmFznE5FytUT7HS0w MwJg== 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=ncn9wVXOnBYe8PDLT53r+bKFbMJvsu1LXvcdJ6Xy1+E=; b=GVbESR8uybD6yqsLdhAxuSfSNsdA0LA6y44d1zMjHFG9GYmOpyURvq7RksPpe7HBO7 YaNJxLi/77eGK4lvlmcvVaDGbOZSe/5htC18blBw4pgaPxgozZz66MIn5E47HPmSpT+4 IGAn6KiUumTrbxHtPMEMzAOKrceJSp4SI2MuAGk5co43wkR23m3tde73LEaLJT+SRF6N Te6FkDj50OQ7nARisdasNgjrj0tfWct8umY171kfw/Wuf2TTmmp3FwGbHpQSx4UuXuVQ Hkwnv1yfDJ4TCUlTSWT+POuTeVHn2kJVtqSNZ40Qguj7ivBtn6v4ryTvsmJC36jyigD9 EzUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=h2CNlant; 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 z86-v6si21360074pfa.120.2018.05.24.05.20.05; Thu, 24 May 2018 05:20:19 -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=h2CNlant; 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 S970000AbeEXMTb (ORCPT + 99 others); Thu, 24 May 2018 08:19:31 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:36936 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969756AbeEXMTW (ORCPT ); Thu, 24 May 2018 08:19:22 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id F0D515C01FF; Thu, 24 May 2018 14:19:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1527164360; 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=ncn9wVXOnBYe8PDLT53r+bKFbMJvsu1LXvcdJ6Xy1+E=; b=h2CNlantIqSwAdFV25gND1nuc3MI1jEDPZPCd7Z+ffPya2SMkgVJZFcUlHb9xhYuZk9bu3 sBTqQDwpr7MQIAHDZtB8sKFuMjzvfUBQPozzoo6iZUVuBtNktFFS2rqW4s55oh/cuabPEo t9wkuT2hxk+IHKSr0sbFZucVKSHIryw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Thu, 24 May 2018 14:19:18 +0200 From: Stefan Agner To: Boris Brezillon 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 In-Reply-To: <20180524135335.6aa0b7a4@bbrezillon> References: <86fdf19ec92b732709732fb60199f16488b4b727.1526990589.git.stefan@agner.ch> <20180524135335.6aa0b7a4@bbrezillon> Message-ID: <146a3abbbff4dcef30ad662a0fb85ff1@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-0.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWELVE(0.00)[25]; 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]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[15.53%]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.05.2018 13:53, Boris Brezillon wrote: > 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. > Yeah I did not meant probing like the Boot ROM does. What I meant was using only the ECC modes which are supported by the Boot ROM when the driver tries to choose a viable mode. So that would be: - RS t=4 - BCH t=8 - BCH t=16 Maybe we could add a property to enable that behavior: tegra,use-bootable-ecc-only; >> >> 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. > Yes, nand-ecc-strength is the first thing I plan to implement, that way strength can be defined in dt. -- Stefan