NAND: Scan bad blocks lazily.
authorIlya Yanok <yanok@emcraft.com>
Mon, 30 Jun 2008 13:34:40 +0000 (15:34 +0200)
committerScott Wood <scottwood@freescale.com>
Tue, 12 Aug 2008 16:31:28 +0000 (11:31 -0500)
commit13f0fd94e3cae6f8a0d9fba5d367e311edc8ebde
tree064eea57a4e9ac347ee028bebf8ad2ef15697573
parentdfbf617ff055e4216f78d358b0867c548916d14b
NAND: Scan bad blocks lazily.

Rather than scanning on boot, scan upon the first attempt to check the
badness of a block.  This speeds up boot when not using NAND, and reduces
the likelihood of needing to reflash via JTAG if NAND becomes
nonfunctional.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h