Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B62AEC433F5 for ; Fri, 8 Apr 2022 08:11:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 497D283E48; Fri, 8 Apr 2022 10:09:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 2A9C983D61; Fri, 8 Apr 2022 10:08:25 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3528B83D61 for ; Fri, 8 Apr 2022 10:08:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1M9WFU-1ng32W45fo-005V1z; Fri, 08 Apr 2022 10:07:57 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Marcel Ziswiler , Fabio Estevam , Han Xu , Miquel Raynal , "NXP i.MX U-Boot Team" , Stefano Babic Subject: [PATCH v1 19/24] colibri-imx6ull: fix nand bch geometry Date: Fri, 8 Apr 2022 10:07:14 +0200 Message-Id: <20220408080719.342072-20-marcel@ziswiler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220408080719.342072-1-marcel@ziswiler.com> References: <20220408080719.342072-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:YbPupWLp21hAqtaNQJ6/UuvnNcdxLYshuvIUU2OoMCHDA8JGEd7 UaCI6J3ZX6QmeD0z5erbdVvhHxa3+E9G7xwv9dlTDE95mztKRpBzaGNMHCCn+oPVv3hX/70 YLYc+JrL1f9qThh3JcMA3dfw1yY52FXdCJSQxMoHkUCPKZtODUSrp+zqBqFjOn9uT/hdJjV RiTiMlulGgC7MX2XKLQxg== X-UI-Out-Filterresults: notjunk:1;V03:K0:5lGziVaPkRQ=:eyylyFnKEcyHMDcgYDUAkC UG4qldaVTXWmsHamwE1/nG5tNPPAoeIargxOblmffvTxUSz4ES2uzjZepH61/gcnrePq8KjZd JIuXvj0N5lQvu7zG5JvOh8lCyppyvovOEBhppeJ63wWwkZXiulZ4R+dsZlGJMP/01Z51SbPdt QoQvULOK4CVzGyroBpYHGFAkLCx3+GeawbraYB1pHC549qMKH6QPLr8dVyqvv9IPUnG82b1PI 8LXI0nIPWMxbVUz0N5dOyAAUZe8cQZEWr0OlWxgaw3uNOIPDi+nE7LwDt+qpUD/L7/Oc+bX5N mE2q8CwqaQNW98kywKenj6D4eNicDQL3cBcTIfLpct1jyVKdrUczfFd1d4eHepn4GeU4nTE6b PRCHNW/VM/1McmUKkkjyydiXA3/krk8PeCPnz/T/jnCyWNQdspQKznM1L3F2eyrQbV+Tozim9 f8MQnH6bqv2ApoBecCcgzXG4MbB3VvWRByjh6chppHprmHL7NF014x0ZGIkpiVDAhj+dqrbxa 0V7SE0njFASm4Gi/Jcod5EEL0hHKz7JBzfH3hjLtmXwkycmRH/Stbxy0j8noxUX8+5ALbQksF 6Cyuhkd1QjHflmAyRFvcobemvlEM6Dsn3rHoOY2XOOpHIdJMbAV061IpwwtFjJfRD4wQOLvD6 w97R5+mfkcXdmL0ajpNY/FmXhxlVBoXgFrfKL+v+LM7BP27K5gjcdG6FeQTzTjehlGGtF3ezL LrFKnU+d+bOWhzx1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Marcel Ziswiler Fix NAND BCH geometry as otherwise the following errors are observed upon boot: ... Loading Environment from NAND... NAND read from offset 380000 failed -74 ... NAND read from offset 800 failed -74 ... ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes ... Fixes: ed48490f8d3f ("mtd: gpmi: fix the bch setting backward compatible issue") Signed-off-by: Marcel Ziswiler --- arch/arm/dts/imx6ull-colibri.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx6ull-colibri.dts b/arch/arm/dts/imx6ull-colibri.dts index dbe3e0206e5..d59696ee6e7 100644 --- a/arch/arm/dts/imx6ull-colibri.dts +++ b/arch/arm/dts/imx6ull-colibri.dts @@ -15,6 +15,7 @@ &gpmi { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpmi_nand>; + fsl,use-minimum-ecc; nand-on-flash-bbt; nand-ecc-mode = "hw"; nand-ecc-strength = <8>; -- 2.34.1