kernel: bump 5.10 to 5.10.37
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.10 / 434-nand-brcmnand-fix-OOB-R-W-with-Hamming-ECC.patch
index 130985ec42f25d867c4eed17693879b68aa9502a..33e27d2153593a70847cab61184f76a0e67e6057 100644 (file)
@@ -19,9 +19,9 @@ Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
 
 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c
 +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
-@@ -2688,6 +2688,12 @@ static int brcmnand_attach_chip(struct n
-       ret = brcmstb_choose_ecc_layout(host);
+@@ -2694,6 +2694,12 @@ static int brcmnand_attach_chip(struct n
+               chip->ecc.read_oob = brcmnand_read_oob_raw;
+       }
  
 +      /* If OOB is written with ECC enabled it will cause ECC errors */
 +      if (is_hamming_ecc(host->ctrl, &host->hwcfg)) {