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>
This commit is contained in:
parent
c01804edde
commit
8c34233596
|
@ -3132,8 +3132,8 @@ ident_done:
|
||||||
* Bad block marker is stored in the last page of each block
|
* Bad block marker is stored in the last page of each block
|
||||||
* on Samsung and Hynix MLC devices; stored in first two pages
|
* on Samsung and Hynix MLC devices; stored in first two pages
|
||||||
* of each block on Micron devices with 2KiB pages and on
|
* of each block on Micron devices with 2KiB pages and on
|
||||||
* SLC Samsung, Hynix, Toshiba and AMD/Spansion. All others scan
|
* SLC Samsung, Hynix, Toshiba, AMD/Spansion, and Macronix.
|
||||||
* only the first page.
|
* All others scan only the first page.
|
||||||
*/
|
*/
|
||||||
if ((chip->cellinfo & NAND_CI_CELLTYPE_MSK) &&
|
if ((chip->cellinfo & NAND_CI_CELLTYPE_MSK) &&
|
||||||
(*maf_id == NAND_MFR_SAMSUNG ||
|
(*maf_id == NAND_MFR_SAMSUNG ||
|
||||||
|
@ -3143,7 +3143,8 @@ ident_done:
|
||||||
(*maf_id == NAND_MFR_SAMSUNG ||
|
(*maf_id == NAND_MFR_SAMSUNG ||
|
||||||
*maf_id == NAND_MFR_HYNIX ||
|
*maf_id == NAND_MFR_HYNIX ||
|
||||||
*maf_id == NAND_MFR_TOSHIBA ||
|
*maf_id == NAND_MFR_TOSHIBA ||
|
||||||
*maf_id == NAND_MFR_AMD)) ||
|
*maf_id == NAND_MFR_AMD ||
|
||||||
|
*maf_id == NAND_MFR_MACRONIX)) ||
|
||||||
(mtd->writesize == 2048 &&
|
(mtd->writesize == 2048 &&
|
||||||
*maf_id == NAND_MFR_MICRON))
|
*maf_id == NAND_MFR_MICRON))
|
||||||
chip->bbt_options |= NAND_BBT_SCAN2NDPAGE;
|
chip->bbt_options |= NAND_BBT_SCAN2NDPAGE;
|
||||||
|
|
Loading…
Reference in New Issue