瀏覽代碼

[MTD NAND] Reduce paranoia level when scanning for bad blocks on virgin chips

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>
David Woodhouse 19 年之前
父節點
當前提交
6943f8af7d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/mtd/nand/nand_bbt.c

+ 2 - 2
drivers/mtd/nand/nand_bbt.c

@@ -981,14 +981,14 @@ static struct nand_bbt_descr largepage_memorybased = {
 };
 };
 
 
 static struct nand_bbt_descr smallpage_flashbased = {
 static struct nand_bbt_descr smallpage_flashbased = {
-	.options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES,
+	.options = NAND_BBT_SCAN2NDPAGE,
 	.offs = 5,
 	.offs = 5,
 	.len = 1,
 	.len = 1,
 	.pattern = scan_ff_pattern
 	.pattern = scan_ff_pattern
 };
 };
 
 
 static struct nand_bbt_descr largepage_flashbased = {
 static struct nand_bbt_descr largepage_flashbased = {
-	.options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES,
+	.options = NAND_BBT_SCAN2NDPAGE,
 	.offs = 0,
 	.offs = 0,
 	.len = 2,
 	.len = 2,
 	.pattern = scan_ff_pattern
 	.pattern = scan_ff_pattern