kernel: bump 5.10 to 5.10.37
[openwrt/openwrt.git] / target / linux / bmips / patches-5.10 / 041-v5.13-mtd-rawnand-brcmnand-fix-OOB-R-W-with-Hamming-ECC.patch
index a4c61c87152b00d96ee1e3cf5ec6c3f7bd53ed9e..00669843d8625586ef328ebf4d051c61e2810c89 100644 (file)
@@ -23,9 +23,9 @@ Link: https://lore.kernel.org/linux-mtd/20210224080210.23686-1-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)) {