[openwrt/openwrt] mpc85xx: p2020: Fix nand driver probe

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 28 18:35:00 EST 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0d062b6246026af6c2155941adaa1bdeac6af7f1

commit 0d062b6246026af6c2155941adaa1bdeac6af7f1
Author: Pawel Dembicki <paweldembicki at gmail.com>
AuthorDate: Wed Feb 24 14:33:49 2021 +0100

    mpc85xx: p2020: Fix nand driver probe
    
    At this moment driver start fail with error:
    [    3.771991] fsl,elbc-fcm-nand: probe of ffa00000.nand failed with error -22
    
    elbc-fcm-nand driver use legacy method of ecc mode detection. It detect hw/sw
    ecc mode when system configure it to "none". [1]
    
    This patch adds 'nand-ecc-mode = "none"' propoerty to use generic driver
    ecc mode detection.
    
    [1] https://elixir.bootlin.com/linux/v5.10.18/source/drivers/mtd/nand/raw/fsl_elbc_nand.c#L730
    
    Signed-off-by: Pawel Dembicki <paweldembicki at gmail.com>
---
 ...-powerpc-mpc85xx-change-P2020RDB-dts-file-for-OpenWRT.patch | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/target/linux/mpc85xx/patches-5.10/104-powerpc-mpc85xx-change-P2020RDB-dts-file-for-OpenWRT.patch b/target/linux/mpc85xx/patches-5.10/104-powerpc-mpc85xx-change-P2020RDB-dts-file-for-OpenWRT.patch
index a22f251077..d96b1d6c30 100644
--- a/target/linux/mpc85xx/patches-5.10/104-powerpc-mpc85xx-change-P2020RDB-dts-file-for-OpenWRT.patch
+++ b/target/linux/mpc85xx/patches-5.10/104-powerpc-mpc85xx-change-P2020RDB-dts-file-for-OpenWRT.patch
@@ -103,7 +103,15 @@ Signed-off-by: Pawel Dembicki <paweldembicki at gmail.com>
  			};
  		};
  
-@@ -140,13 +135,43 @@
+@@ -85,6 +80,7 @@
+                        compatible = "fsl,p2020-fcm-nand",
+                                     "fsl,elbc-fcm-nand";
+                        reg = <0x1 0x0 0x40000>;
++                       nand-ecc-mode = "none";
+
+                        partition at 0 {
+                                /* This location must not be altered  */
+@@ -140,13 +136,43 @@
  	soc: soc at ffe00000 {
  		ranges = <0x0 0x0 0xffe00000 0x100000>;
  



More information about the lede-commits mailing list