Masahiro Yamada ab37b76d5d mtd: nand: do not scan BBT after scrub
Currently, "nand scrub" runs chip->scan_bbt at the end of
nand_erase_opts() even if NAND_SKIP_BBTSCAN flag is set.

It violates the intention of NAND_SKIP_BBTSCAN.

Move NAND_SKIP_BBTSCAN flag check to nand_block_checkbad() so that
chip->scan_bbt() is never run if NAND_SKIP_BBTSCAN is set.

Also, unset NAND_BBT_SCANNED flag instead of running chip->scan_bbt()
right after scrub.  We can be lazier here because the BBT is scanned
at the next call of nand_block_checkbad().

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Scott Wood <scottwood@freescale.com>
2015-01-09 12:19:06 -06:00
..
2014-09-24 18:30:29 -04:00
2014-09-24 18:30:28 -04:00
2015-01-08 11:00:45 -05:00
2014-12-18 13:19:20 -07:00
2014-12-18 13:19:20 -07:00
2015-01-05 12:08:55 -05:00
2014-09-24 18:30:28 -04:00
2015-01-09 00:03:28 +05:30
2014-12-31 19:10:13 +01:00
2015-01-05 12:08:52 -05:00
2014-09-24 18:30:28 -04:00
2014-09-24 18:30:28 -04:00