bcm63xx: smp: add NAND support
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 434-nand-raw-use-write_oob_raw-for-MTD_OPS_AUTO_OOB-mode.patch
1 --- a/drivers/mtd/nand/raw/nand_base.c
2 +++ b/drivers/mtd/nand/raw/nand_base.c
3 @@ -488,7 +488,7 @@ static int nand_do_write_oob(struct nand
4
5 nand_fill_oob(chip, ops->oobbuf, ops->ooblen, ops);
6
7 - if (ops->mode == MTD_OPS_RAW)
8 + if (ops->mode == MTD_OPS_AUTO_OOB || ops->mode == MTD_OPS_RAW)
9 status = chip->ecc.write_oob_raw(chip, page & chip->pagemask);
10 else
11 status = chip->ecc.write_oob(chip, page & chip->pagemask);