aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/nand_base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 51653d9e1438..3ed9c5e4d34e 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -420,6 +420,7 @@ static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
420 ops.datbuf = NULL; 420 ops.datbuf = NULL;
421 ops.oobbuf = buf; 421 ops.oobbuf = buf;
422 ops.ooboffs = chip->badblockpos & ~0x01; 422 ops.ooboffs = chip->badblockpos & ~0x01;
423 ops.mode = MTD_OPS_PLACE_OOB;
423 do { 424 do {
424 ret = nand_do_write_oob(mtd, ofs, &ops); 425 ret = nand_do_write_oob(mtd, ofs, &ops);
425 426
@@ -1596,6 +1597,7 @@ static int nand_read(struct mtd_info *mtd, loff_t from, size_t len,
1596 ops.len = len; 1597 ops.len = len;
1597 ops.datbuf = buf; 1598 ops.datbuf = buf;
1598 ops.oobbuf = NULL; 1599 ops.oobbuf = NULL;
1600 ops.mode = 0;
1599 1601
1600 ret = nand_do_read_ops(mtd, from, &ops); 1602 ret = nand_do_read_ops(mtd, from, &ops);
1601 1603
@@ -2306,6 +2308,7 @@ static int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len,
2306 ops.len = len; 2308 ops.len = len;
2307 ops.datbuf = (uint8_t *)buf; 2309 ops.datbuf = (uint8_t *)buf;
2308 ops.oobbuf = NULL; 2310 ops.oobbuf = NULL;
2311 ops.mode = 0;
2309 2312
2310 ret = nand_do_write_ops(mtd, to, &ops); 2313 ret = nand_do_write_ops(mtd, to, &ops);
2311 2314
@@ -2341,6 +2344,7 @@ static int nand_write(struct mtd_info *mtd, loff_t to, size_t len,
2341 ops.len = len; 2344 ops.len = len;
2342 ops.datbuf = (uint8_t *)buf; 2345 ops.datbuf = (uint8_t *)buf;
2343 ops.oobbuf = NULL; 2346 ops.oobbuf = NULL;
2347 ops.mode = 0;
2344 2348
2345 ret = nand_do_write_ops(mtd, to, &ops); 2349 ret = nand_do_write_ops(mtd, to, &ops);
2346 2350