u-boot-2016/drivers
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
..
bios_emulator
block
bootcount
core
crypto
ddr/fsl
demo
dfu
dma
fpga
gpio
hwmon
i2c i2c:mxc fix array size of i2c_data 2015-01-08 11:00:45 -05:00
input
memory
misc
mmc MVEBUMMC : REMOVE unnecessary delay from init 2015-01-06 10:10:28 +02:00
mtd mtd: nand: do not scan BBT after scrub 2015-01-09 12:19:06 -06:00
net
pci
pcmcia
power
pwm
qe
rtc
serial
soc
sound
spi qspi:fsl implement AHB read 2015-01-09 00:03:28 +05:30
thermal
tpm
twserial
usb
video
watchdog
Kconfig
Makefile