u-boot/drivers/mtd/nand/raw/brcmnand
Álvaro Fernández Rojas d346971559 mtd: rawnand: brcmnand: fix OOB R/W with Hamming ECC
Hamming ECC doesn't cover the OOB data, so reading or writing OOB shall
always be done without ECC enabled.
This is a problem when adding JFFS2 cleanmarkers to erased blocks. If JFFS2
clenmarkers are added to the OOB with ECC enabled, OOB bytes will be changed
from ff ff ff to 00 00 00, reporting incorrect ECC errors.

Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210224080210.23686-1-noltari@gmail.com
[Ported to U-Boot from the Linux kernel]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: William Zhang <william.zhang@broadcom.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
2023-02-27 16:30:05 +01:00
..
bcm6368_nand.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
bcm6753_nand.c nand: brcmnand: add bcm6753 support 2022-03-07 11:36:12 -05:00
bcm6838_nand.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
bcm6858_nand.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
bcm63158_nand.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
bcm68360_nand.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
brcmnand.c mtd: rawnand: brcmnand: fix OOB R/W with Hamming ECC 2023-02-27 16:30:05 +01:00
brcmnand.h drivers: nand: brcmnand: add initial support 2019-04-22 11:55:58 -04:00
brcmnand_compat.c nand: Drop dm.h header file 2020-08-03 22:19:54 -04:00
brcmnand_compat.h nand: Drop dm.h header file 2020-08-03 22:19:54 -04:00
Makefile nand: brcmnand: add bcm6753 support 2022-03-07 11:36:12 -05:00