Received: by 10.192.165.148 with SMTP id m20csp2824723imm; Mon, 7 May 2018 01:41:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpDsheVyA7ZGKswUZExNOhWHsR76Bk79l2tzBfGLbrBD1pV1JNQ5SU/OLMcHTYOrskRPfg6 X-Received: by 2002:a63:4285:: with SMTP id p127-v6mr29920561pga.421.1525682466134; Mon, 07 May 2018 01:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525682466; cv=none; d=google.com; s=arc-20160816; b=v+WOmfod9Wt+m7kSbhdFqO5O2ag6bTETsxyA/g5M6qnQcj1bmqEp5NvmU1VylCbLjJ QmErS/ZxhCBO4FchUCp40RCkLrDDBqVB96Y48ppVvm3/eRTpNQ+af5ayKbqyj8aeTjKN W4ei9WavCKqLTymNouqIPXnI9h6CC4dioLpmSbat9j1H9/2O7QOAId8DASQlKek7QRIM NNxbylXSlx3clRZNHDiH0A3oBEzPT2yeDLZ0tHJCntT0HPz2PaB7lPyqijJ5UrmYDf+3 W7gA3mp2WR+DWDptKgOnEvGpCLkKyB7s56fLwZwZRieWeGYkBXpZlKoVumvhCYotJJrL HIiA== 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=EWSSEjujeBXFFTUoKRXgymbUMj3Np0qU7NBd9EtgLmI=; b=M5um3KTjlIA+7gPuEQaNOfaD27HOG/GO53E3TnqnNAW24G72Kzbd23ECJ816D9noQk SzOceCfqQHmadgf1P17VknfUcafiSQDx5Q3GCxVxcFLSZk8iE9v39Oj5uBuHHey5zYSM f+kqTER3lBlJ3UXt9H4w9yzTGAIRiMl3vecb+CyfoRmvNlz1YCDqe+nDN5luxy/TgfRM l/LLZqn9FDHuN32yDVB6IRL2i0ZkmyLJjwMNggSa1nyxGgkpbg1eB2Arj+LfGyG4d2o+ AH8l9M59C3GWNLVo7EdXsdG5vpO77+XYfxaKcBBWPttJR+5b/R52JaYQkPcWlv1FLLE6 yu3Q== 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 v12-v6si22174429plz.33.2018.05.07.01.40.51; Mon, 07 May 2018 01:41:06 -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 S1752433AbeEGIkQ (ORCPT + 99 others); Mon, 7 May 2018 04:40:16 -0400 Received: from mail.bootlin.com ([62.4.15.54]:45960 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752423AbeEGIkN (ORCPT ); Mon, 7 May 2018 04:40:13 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C59A520705; Mon, 7 May 2018 10:40:10 +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 bbrezillon (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 5AD5120376; Mon, 7 May 2018 10:40:10 +0200 (CEST) Date: Mon, 7 May 2018 10:40:10 +0200 From: Boris Brezillon To: Abhishek Sahu Cc: Mark Rutland , devicetree@vger.kernel.org, Archit Taneja , Richard Weinberger , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Vasut , Rob Herring , linux-mtd@lists.infradead.org, Miquel Raynal , Andy Gross , Brian Norris , David Woodhouse Subject: Re: [PATCH v2 03/14] dt-bindings: qcom_nandc: make nand-ecc-strength optional Message-ID: <20180507104010.620a4b43@bbrezillon> In-Reply-To: <1525350041-22995-4-git-send-email-absahu@codeaurora.org> References: <1525350041-22995-1-git-send-email-absahu@codeaurora.org> <1525350041-22995-4-git-send-email-absahu@codeaurora.org> 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, 3 May 2018 17:50:30 +0530 Abhishek Sahu wrote: > Now, nand-ecc-strength is optional. If 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 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. As mentioned in my other review, no need to specify nand-ecc-step-size if you don't have a choice. You can remove the property and say that nand-ecc-strength encodes the ECC strength for 512 bytes chunks. > > 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