diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-13 11:14:26 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-13 11:14:26 -0400 |
commit | 6943f8af7d6583be57d67bba8b2644371f6a10ca (patch) | |
tree | b6c3842b6616b4878677c9bded3a12a6e99dda3d /drivers/mtd | |
parent | 9d75414b4fa7390975ef0e2b56ff40425657fe52 (diff) |
[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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | 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 32f063b6e9a5..ccc48a4a6ad0 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_memorybased = { | |||
981 | }; | 981 | }; |
982 | 982 | ||
983 | static struct nand_bbt_descr smallpage_flashbased = { | 983 | static struct nand_bbt_descr smallpage_flashbased = { |
984 | .options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES, | 984 | .options = NAND_BBT_SCAN2NDPAGE, |
985 | .offs = 5, | 985 | .offs = 5, |
986 | .len = 1, | 986 | .len = 1, |
987 | .pattern = scan_ff_pattern | 987 | .pattern = scan_ff_pattern |
988 | }; | 988 | }; |
989 | 989 | ||
990 | static struct nand_bbt_descr largepage_flashbased = { | 990 | static struct nand_bbt_descr largepage_flashbased = { |
991 | .options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES, | 991 | .options = NAND_BBT_SCAN2NDPAGE, |
992 | .offs = 0, | 992 | .offs = 0, |
993 | .len = 2, | 993 | .len = 2, |
994 | .pattern = scan_ff_pattern | 994 | .pattern = scan_ff_pattern |