Received: by 10.223.176.5 with SMTP id f5csp932600wra; Tue, 6 Feb 2018 09:41:31 -0800 (PST) X-Google-Smtp-Source: AH8x225z71E97w2c59vJwyoJzrsiee0DI7qNi7xWTH8Wq0DlcORNFiXBbkzs4am8D6qGPKotOMQT X-Received: by 10.101.92.138 with SMTP id a10mr2571883pgt.191.1517938891415; Tue, 06 Feb 2018 09:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517938891; cv=none; d=google.com; s=arc-20160816; b=aPNWDhlQGjThp/EaOD5g023kwuLIP3IFKWIKPR0sdMfEzXVpP/FJl2xffDtMBCgjo+ U9h2dWi4o04b/J+nj83QHSHbkg+yWnnGml6qyMuvUdguFtRSRYSzSjGUfktvoMNJB3DI j1aXOTsur4Ff2Rsq1E4x5EUXzNOI+1ApcB9/wgSnAJ+sw2ilF6kctUj/uyPRLohpfolG iY/Pb7QM2RyEcMb/iyPjBWgcFbCyygkZo5TH6dC4Oj3EtCEeRwRe/V6LfPV6LBX+QzNJ dDQLwAj7NwcoNgpvQMSGkFTDTxSmJjMoInFlLkr8iHpwmWkdVBYrV5/OB2Y5yuzHNcVf fxug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:message-id:date:subject:cc :to:from:arc-authentication-results; bh=l2orBtlnKIC5oJ2Q1QopbARUlAY9ase1YapJN3yvttw=; b=Z+kJJnGW/u/efKq8GwlCGTfVkSN2l7Zid8ASoy8o6gZ2PNI+UB3FSqU2R0YlTnc4jY zo2Xgy7StyKkKN82F3A5mQIoD4xopn/gP4DUQYBuAMr3l7O3v1iyyhvFiTDj/UKZvhjA sI5PYizmfLxknsHmUbWql4d67EahlNjOxgtitlQ/OJzel0P1Mx/BzqXob4rbWkM0NTmX 7LeN97+xLi25Ad91pqGLsM1tTO+ej4cn9cuseiVnXB9zIgXli/RymSYgTfL+gFOtkKrk 1AUHrXFzfr8upC2nq5ZbDKtFAWk95L0b9PdSFswxU4Cb4jKD/Nlw564dT9zaDEE2alGd apbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=ai2yIx0W; 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 b8si1659748pgt.383.2018.02.06.09.41.17; Tue, 06 Feb 2018 09:41:31 -0800 (PST) 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=ai2yIx0W; 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 S1752574AbeBFRkb (ORCPT + 99 others); Tue, 6 Feb 2018 12:40:31 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:33691 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752439AbeBFRkZ (ORCPT ); Tue, 6 Feb 2018 12:40:25 -0500 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 81D115C0D58; Tue, 6 Feb 2018 18:33:02 +0100 (CET) From: Stefan Agner To: han.xu@nxp.com, boris.brezillon@free-electrons.com Cc: marek.vasut@gmail.com, richard@nod.at, dwmw2@infradead.org, cyrille.pitchen@wedev4u.fr, max.oss.09@gmail.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH 1/2] dt-bindings: mtd: gpmi-nand: specify fsl,use-minimum-ecc behavior Date: Tue, 6 Feb 2018 18:40:20 +0100 Message-Id: <20180206174021.5947-1-stefan@agner.ch> X-Mailer: git-send-email 2.16.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1517938382; bh=l2orBtlnKIC5oJ2Q1QopbARUlAY9ase1YapJN3yvttw=; h=From:To:Cc:Subject:Date:Message-Id; b=ai2yIx0W60Jf74GMxf/Cy1Pk3qSQ8VLrRpziiafpCCkIbXEXFotzlp7WDNTcCtvvwPASTviGjf+y2jSQ8CTlP2vMr4eZmxRnmxV4Ni9mwliyD86spCgRvrUxXKhmiwUpq/P5rU9Zg3nB2AuPmaHpL9kK+eGJeertEntJMctmbGA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dt property fsl,use-minimum-ecc requires a NAND chip to provide a ECC strength/step size, otherwise the driver fails to probe. This is by design to avoid that the driver uses a fallback and later changes ECC parameters due to additionion of a NAND chip driver. Document the current behavior. Signed-off-by: Stefan Agner --- Documentation/devicetree/bindings/mtd/gpmi-nand.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/gpmi-nand.txt b/Documentation/devicetree/bindings/mtd/gpmi-nand.txt index b289ef3c1b7e..eb2d9919d063 100644 --- a/Documentation/devicetree/bindings/mtd/gpmi-nand.txt +++ b/Documentation/devicetree/bindings/mtd/gpmi-nand.txt @@ -34,9 +34,8 @@ Optional properties: automatically discoverable for some flash (e.g., according to the ONFI standard). However, note that if this strength is not - discoverable or this property is not enabled, - the software may chooses an implementation-defined - ECC scheme. + discoverable the driver will fail probing with + an error. - fsl,no-blockmark-swap: Don't swap the bad block marker from the OOB area with the byte in the data area but rely on the flash based BBT for identifying bad blocks. -- 2.16.1