You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
429 B
Diff
12 lines
429 B
Diff
--- a/drivers/mtd/nand/raw/nand_base.c
|
|
+++ b/drivers/mtd/nand/raw/nand_base.c
|
|
@@ -488,7 +488,7 @@ static int nand_do_write_oob(struct nand
|
|
|
|
nand_fill_oob(chip, ops->oobbuf, ops->ooblen, ops);
|
|
|
|
- if (ops->mode == MTD_OPS_RAW)
|
|
+ if (ops->mode == MTD_OPS_AUTO_OOB || ops->mode == MTD_OPS_RAW)
|
|
status = chip->ecc.write_oob_raw(chip, page & chip->pagemask);
|
|
else
|
|
status = chip->ecc.write_oob(chip, page & chip->pagemask);
|