diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-11-02 16:34:44 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 12:59:53 -0500 |
commit | 8c3423359644d01cfba3a401e403c549c3f88ac4 (patch) | |
tree | a0cbe5f0c85c1e867cc17fea5151746930bffdac /drivers/mtd/nand | |
parent | c01804edde20414b0cadbe38cc9974a54a31e36f (diff) |
mtd: nand: scan 1st and 2nd page for Macronix SLC
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | 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 3ed9c5e4d34e..35b4565050f1 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -3132,8 +3132,8 @@ ident_done: | |||
3132 | * Bad block marker is stored in the last page of each block | 3132 | * Bad block marker is stored in the last page of each block |
3133 | * on Samsung and Hynix MLC devices; stored in first two pages | 3133 | * on Samsung and Hynix MLC devices; stored in first two pages |
3134 | * of each block on Micron devices with 2KiB pages and on | 3134 | * of each block on Micron devices with 2KiB pages and on |
3135 | * SLC Samsung, Hynix, Toshiba and AMD/Spansion. All others scan | 3135 | * SLC Samsung, Hynix, Toshiba, AMD/Spansion, and Macronix. |
3136 | * only the first page. | 3136 | * All others scan only the first page. |
3137 | */ | 3137 | */ |
3138 | if ((chip->cellinfo & NAND_CI_CELLTYPE_MSK) && | 3138 | if ((chip->cellinfo & NAND_CI_CELLTYPE_MSK) && |
3139 | (*maf_id == NAND_MFR_SAMSUNG || | 3139 | (*maf_id == NAND_MFR_SAMSUNG || |
@@ -3143,7 +3143,8 @@ ident_done: | |||
3143 | (*maf_id == NAND_MFR_SAMSUNG || | 3143 | (*maf_id == NAND_MFR_SAMSUNG || |
3144 | *maf_id == NAND_MFR_HYNIX || | 3144 | *maf_id == NAND_MFR_HYNIX || |
3145 | *maf_id == NAND_MFR_TOSHIBA || | 3145 | *maf_id == NAND_MFR_TOSHIBA || |
3146 | *maf_id == NAND_MFR_AMD)) || | 3146 | *maf_id == NAND_MFR_AMD || |
3147 | *maf_id == NAND_MFR_MACRONIX)) || | ||
3147 | (mtd->writesize == 2048 && | 3148 | (mtd->writesize == 2048 && |
3148 | *maf_id == NAND_MFR_MICRON)) | 3149 | *maf_id == NAND_MFR_MICRON)) |
3149 | chip->bbt_options |= NAND_BBT_SCAN2NDPAGE; | 3150 | chip->bbt_options |= NAND_BBT_SCAN2NDPAGE; |