]> err.no Git - linux-2.6/commitdiff
[MTD NAND] Reduce paranoia level when scanning for bad blocks on virgin chips
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 May 2006 15:14:26 +0000 (16:14 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 May 2006 15:14:26 +0000 (16:14 +0100)
We were scanning for 0xFF through the entire chip -- which takes a while
when it's a 512MiB device as I have on my current toy. The specs only say
we need to check certain bytes -- so do only that.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nand_bbt.c

index 32f063b6e9a54fa07ffd61891afdb441ea6e9e5d..ccc48a4a6ad0c0ef743d54934d5d1cc45b9acb3e 100644 (file)
@@ -981,14 +981,14 @@ static struct nand_bbt_descr largepage_memorybased = {
 };
 
 static struct nand_bbt_descr smallpage_flashbased = {
-       .options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES,
+       .options = NAND_BBT_SCAN2NDPAGE,
        .offs = 5,
        .len = 1,
        .pattern = scan_ff_pattern
 };
 
 static struct nand_bbt_descr largepage_flashbased = {
-       .options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES,
+       .options = NAND_BBT_SCAN2NDPAGE,
        .offs = 0,
        .len = 2,
        .pattern = scan_ff_pattern