mtd: msm_qpic_nand: Update ops for Nand read and write
The msm_nand_read and msm_nand_write variants are used to read/write
main data only i.e., no OOB data. The ops mode MTD_OPS_PLACE_OOB
is applicable for OOB data and is currently not supported in
software and so will cause failure for such requests.
Whereas when MTD_OPS_AUTO_OOB mode is used, the software would
automatically place the OOB at some pre-defined locaiton as per
our page layout.
So update the ops to MTD_OPS_AUTO_OOB for both read and write.
CRs-Fixed: 479634
Change-Id: Ief1e0ebf254816243058023c963cc80f8661e222
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
diff --git a/drivers/mtd/devices/msm_qpic_nand.c b/drivers/mtd/devices/msm_qpic_nand.c
index fe8bdd0..0b04bbf 100644
--- a/drivers/mtd/devices/msm_qpic_nand.c
+++ b/drivers/mtd/devices/msm_qpic_nand.c
@@ -1458,7 +1458,7 @@
int ret;
struct mtd_oob_ops ops;
- ops.mode = MTD_OPS_PLACE_OOB;
+ ops.mode = MTD_OPS_AUTO_OOB;
ops.len = len;
ops.retlen = 0;
ops.ooblen = 0;
@@ -1643,7 +1643,7 @@
int ret;
struct mtd_oob_ops ops;
- ops.mode = MTD_OPS_PLACE_OOB;
+ ops.mode = MTD_OPS_AUTO_OOB;
ops.len = len;
ops.retlen = 0;
ops.ooblen = 0;