mtd: nand: scan 1st and 2nd page for Macronix SLC
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Jan 9 13:59:02 EST 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8c3423359644d01cfba3a401e403c549c3f88ac4
Commit: 8c3423359644d01cfba3a401e403c549c3f88ac4
Parent: c01804edde20414b0cadbe38cc9974a54a31e36f
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Wed Nov 2 13:34:44 2011 -0700
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Jan 9 17:59:53 2012 +0000
mtd: nand: scan 1st and 2nd page for Macronix SLC
Signed-off-by: Brian Norris <computersforpeace at gmail.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/nand_base.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 3ed9c5e..35b4565 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3132,8 +3132,8 @@ ident_done:
* Bad block marker is stored in the last page of each block
* on Samsung and Hynix MLC devices; stored in first two pages
* of each block on Micron devices with 2KiB pages and on
- * SLC Samsung, Hynix, Toshiba and AMD/Spansion. All others scan
- * only the first page.
+ * SLC Samsung, Hynix, Toshiba, AMD/Spansion, and Macronix.
+ * All others scan only the first page.
*/
if ((chip->cellinfo & NAND_CI_CELLTYPE_MSK) &&
(*maf_id == NAND_MFR_SAMSUNG ||
@@ -3143,7 +3143,8 @@ ident_done:
(*maf_id == NAND_MFR_SAMSUNG ||
*maf_id == NAND_MFR_HYNIX ||
*maf_id == NAND_MFR_TOSHIBA ||
- *maf_id == NAND_MFR_AMD)) ||
+ *maf_id == NAND_MFR_AMD ||
+ *maf_id == NAND_MFR_MACRONIX)) ||
(mtd->writesize == 2048 &&
*maf_id == NAND_MFR_MICRON))
chip->bbt_options |= NAND_BBT_SCAN2NDPAGE;
More information about the linux-mtd-cvs
mailing list