Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp389262imm; Sat, 26 May 2018 01:43:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDa5TKpWhZgO8W1Ec2JykgmR2GyN41XBUa/e5Z+g80TxHhpX5amEABzGeekQuXhXLoBTWD X-Received: by 2002:a62:ec6:: with SMTP id 67-v6mr5746428pfo.36.1527324234999; Sat, 26 May 2018 01:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527324234; cv=none; d=google.com; s=arc-20160816; b=D9nxoHnH5GHO1j5lWrvnqSkoY2qLfjOGk1xso9ckmKLqLukeWg91VmTVi+tcOwlnEI ztUFSwdA30MEBOxQD2kcnXDvgzDEHmwY1PQe2TwAf3RI93OzSPCZGAaqJ7VTZlhPL3EY BF/ayKlWLFOd5U/eTY/1leLn7iuzv0G/P6sNwJZRRo3b5JAdsn7XyORzmx0YU1Ggwptq XIxO8rf7ge1miCRxxaRB3EwrYXP3i/NpP9eyZ0YrRpoW+d9lFT0v75BCmmbSMus1MJeI SqaJguTsWWqbrJ/tAnP7LrPLczE5VIEDRexFph9jHoB14mATOThkxCUngCQ/E/o55KiD 1rrw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=gzURgirvYkmH8P8t30DStc6RejQIqYEi4ZX7/WbbgDg=; b=PoBzBV9daLaD5mWlc470EpU3RG0UCS/snUXxqdFe29NzdJ5Emm/vC303P76y86J7gD HaQCE5WWa6S/eoY/Ue7pnW4N9GgBZxPNj+scP1Fq6NZX+xX+lloOG7k7N3n9P1TceY0C Sc/CPHEpRgTVAU2QiBuFoXsfdJGfPPpM57pAGDwBHELBm3swYoBb3tQh8brC2DNMnWht U1mSQMPOC2XUnSTxoRPCWR/R+z+5Qw4SCnq63wIEOEJb79aUJ6Qy5fH1NFqiy3gjDDl3 KtGulZFGuKx0TprWLAzWL5zvatnGJuUdRFuJYIrSMTV6HDoUbi3GWcPCHFnZp6f8rthu hXEQ== 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 30-v6si25873907plf.104.2018.05.26.01.43.40; Sat, 26 May 2018 01:43:54 -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 S1031413AbeEZInO (ORCPT + 99 others); Sat, 26 May 2018 04:43:14 -0400 Received: from mail.bootlin.com ([62.4.15.54]:35890 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031300AbeEZInI (ORCPT ); Sat, 26 May 2018 04:43:08 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C19AB2073F; Sat, 26 May 2018 10:43:06 +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 xps13 (unknown [37.169.55.10]) by mail.bootlin.com (Postfix) with ESMTPSA id 8243B2072C; Sat, 26 May 2018 10:42:55 +0200 (CEST) Date: Sat, 26 May 2018 10:42:53 +0200 From: Miquel Raynal To: Abhishek Sahu Cc: Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Andy Gross , Archit Taneja , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: Re: [PATCH v3 03/16] dt-bindings: qcom_nandc: make nand-ecc-strength optional Message-ID: <20180526104253.05489470@xps13> In-Reply-To: <1527250904-21988-4-git-send-email-absahu@codeaurora.org> References: <1527250904-21988-1-git-send-email-absahu@codeaurora.org> <1527250904-21988-4-git-send-email-absahu@codeaurora.org> Organization: Bootlin 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 Abhishek, On Fri, 25 May 2018 17:51:31 +0530, Abhishek Sahu wrote: > If nand-ecc-strength specified in DT, then controller will use > this ECC strength otherwise ECC strength will be calculated > according to chip requirement and available OOB size. > > Signed-off-by: Abhishek Sahu > --- > * Changes from v2: > NONE > > * Changes from v1: > NEW PATCH > > Documentation/devicetree/bindings/mtd/qcom_nandc.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt > index 73d336be..f246aa0 100644 > --- a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt > +++ b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt > @@ -45,11 +45,13 @@ Required properties: > number (e.g., 0, 1, 2, etc.) > - #address-cells: see partition.txt > - #size-cells: see partition.txt > -- nand-ecc-strength: see nand.txt > - nand-ecc-step-size: must be 512. see nand.txt for more details. I think you can squash the two dt-bindings commits as they are tightly related to each other. > > Optional properties: > - nand-bus-width: see nand.txt > +- nand-ecc-strength: see nand.txt. If not specified, then ECC strength will > + be used according to chip requirement and available > + OOB size. > > Each nandcs device node may optionally contain a 'partitions' sub-node, which > further contains sub-nodes describing the flash partition mapping. See -- Miquel Raynal, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com