[PATCH 1/2][MTD]MLC device check in OneNAND driver
Rohit Hassan Sathyanarayan
rohit.hs at samsung.com
Tue Sep 14 04:06:06 EDT 2010
Hi Artem,
This MLC device check will be required for adding MLC support in file system.
Signed-off-by: Rohit HS <rohit.hs at samsung.com>
---
drivers/mtd/onenand/onenand_base.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index a2bb520..59af37d 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -4028,7 +4028,8 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
/* Fill in remaining MTD driver data */
mtd->type = MTD_NANDFLASH;
- mtd->flags = MTD_CAP_NANDFLASH;
+ mtd->flags = ONENAND_IS_MLC(this) ? MTD_CAP_MLCNANDFLASH
+ : MTD_CAP_NANDFLASH;
mtd->erase = onenand_erase;
mtd->point = NULL;
mtd->unpoint = NULL;
---
Regards,
Rohit.H.S
More information about the linux-mtd
mailing list