mtd: eLBC NAND: utilize oob_required parameter
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon May 28 07:59:10 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d112dc7fa65882279434622a40cbe7677a780c46
Commit: d112dc7fa65882279434622a40cbe7677a780c46
Parent: e47f3db4587c5486d3d5838fd4bef4f9c3b12205
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Wed May 2 10:15:00 2012 -0700
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sun May 13 23:21:39 2012 -0500
mtd: eLBC NAND: utilize oob_required parameter
Don't read OOB if the caller doesn't require it.
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Reviewed-by: Scott Wood <scottwood at freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/fsl_elbc_nand.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c
index 11e3401..7842938 100644
--- a/drivers/mtd/nand/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/fsl_elbc_nand.c
@@ -754,7 +754,8 @@ static int fsl_elbc_read_page(struct mtd_info *mtd, struct nand_chip *chip,
struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = ctrl->nand;
fsl_elbc_read_buf(mtd, buf, mtd->writesize);
- fsl_elbc_read_buf(mtd, chip->oob_poi, mtd->oobsize);
+ if (oob_required)
+ fsl_elbc_read_buf(mtd, chip->oob_poi, mtd->oobsize);
if (fsl_elbc_wait(mtd, chip) & NAND_STATUS_FAIL)
mtd->ecc_stats.failed++;
More information about the linux-mtd-cvs
mailing list