diff mbox series

[v1,19/24] colibri-imx6ull: fix nand bch geometry

Message ID 20220408102741.351421-1-marcel@ziswiler.com
State Accepted
Commit 0fed070c38c675fa8e5bda4f3753a379cd9e830d
Delegated to: Stefano Babic
Headers show
Series None | expand

Commit Message

Marcel Ziswiler April 8, 2022, 10:27 a.m. UTC
From: Marcel Ziswiler <marcel.ziswiler@toradex.com>

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 <marcel.ziswiler@toradex.com>
---

 arch/arm/dts/imx6ull-colibri.dts | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Babic April 12, 2022, 6:42 p.m. UTC | #1
> From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> 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 <marcel.ziswiler@toradex.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

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>;