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

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat May 13 19:59:02 EDT 2006


commit 6943f8af7d6583be57d67bba8b2644371f6a10ca
tree b6c3842b6616b4878677c9bded3a12a6e99dda3d
parent 9d75414b4fa7390975ef0e2b56ff40425657fe52
author David Woodhouse <dwmw2 at infradead.org> Sat, 13 May 2006 16:14:26 +0100
committer David Woodhouse <dwmw2 at infradead.org> Sat, 13 May 2006 16:14:26 +0100

[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 at infradead.org>

 drivers/mtd/nand/nand_bbt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
index 32f063b..ccc48a4 100644
--- a/drivers/mtd/nand/nand_bbt.c
+++ b/drivers/mtd/nand/nand_bbt.c
@@ -981,14 +981,14 @@ static struct nand_bbt_descr largepage_m
 };
 
 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




More information about the linux-mtd-cvs mailing list