linux-stable/drivers/mtd
Stefan Riedmueller 1a57b13e60 mtd: rawnand: nand_bbt: Skip bad blocks when searching for the BBT in NAND
The blocks containing the bad block table can become bad as well. So
make sure to skip any blocks that are marked bad when searching for the
bad block table.

Otherwise in very rare cases where two BBT blocks wear out it might
happen that an obsolete BBT is used instead of a newer available
version.

This only applies to drivers which make use of a bad block marker in flash.
Other drivers won't be able to identify bad BBT blocks and thus can't skip
these.

Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210625123821.207458-1-s.riedmueller@phytec.de
2021-07-16 01:06:22 +02:00
..
chips mtd: Convert list_for_each to entry variant 2021-06-11 21:05:06 +02:00
devices mtd: devices: add support for microchip 48l640 EERAM 2021-06-11 20:43:12 +02:00
hyperbus mtd: hyperbus: Fix build failure when only RPCIF_HYPERBUS is enabled 2020-10-12 21:12:08 +02:00
lpddr mtd: lpddr: fix excessive stack usage with clang 2020-08-27 14:36:07 +02:00
maps mtd: amd76xrom: remove unnecessary oom message 2021-06-11 20:44:18 +02:00
nand mtd: rawnand: nand_bbt: Skip bad blocks when searching for the BBT in NAND 2021-07-16 01:06:22 +02:00
parsers MTD core changes: 2021-07-05 11:21:51 -07:00
spi-nor mtd: spi-nor: remove redundant continue statement 2021-06-21 11:17:10 +05:30
tests mtd: tests: Remove redundant assignment to err 2021-05-10 12:48:35 +02:00
ubi This pull request contains the following changes for UBIFS: 2021-07-09 10:10:47 -07:00
ftl.c mtd: ftl: Use module_mtd_blktrans to register driver 2021-03-11 09:37:48 +01:00
inftlcore.c mtd: inftlcore: Use module_mtd_blktrans to register driver 2021-03-11 09:37:48 +01:00
inftlmount.c mtd: inftl: remove unnecessary oom message 2021-06-11 20:44:21 +02:00
Kconfig mtd: nand: ecc-hamming: Move Hamming code to the generic NAND layer 2020-12-10 22:37:29 +01:00
Makefile mtd: Support kmsg dumper based on pstore/blk 2020-05-31 19:49:01 -07:00
mtd_blkdevs.c mtd_blkdevs: initialze new->rq in add_mtd_blktrans_dev 2021-06-16 06:53:50 -06:00
mtdblock.c mtd: mtdblock: Use module_mtd_blktrans to register driver 2021-03-11 09:37:48 +01:00
mtdblock_ro.c mtd: mtdblock_ro: Use module_mtd_blktrans to register driver 2021-03-11 09:37:48 +01:00
mtdchar.c mtd: add OTP (one-time-programmable) erase ioctl 2021-03-28 19:24:54 +02:00
mtdconcat.c mtd: mtdconcat: map: remove redundant assignment to variable 'size' 2020-09-11 18:49:34 +02:00
mtdcore.c mtd: core: use MTD_DEVICE_ATTR_RO/RW() helper macros 2021-06-11 20:42:57 +02:00
mtdcore.h
mtdoops.c mtd: mtdoops: remove unnecessary oom message 2021-06-11 20:43:46 +02:00
mtdpart.c mtd: mtdpart: use DEVICE_ATTR_RO() helper macro 2021-06-11 20:42:45 +02:00
mtdpstore.c pstore/blk: Include zone in pstore_device_info 2021-06-16 21:09:31 -07:00
mtdsuper.c block: remove i_bdev 2020-12-01 14:53:39 -07:00
mtdswap.c mtd: mtdswap: Use module_mtd_blktrans to register driver 2021-03-11 09:37:48 +01:00
nftlcore.c mtd: nftlcore: remove set but rewrite variables 2021-05-10 12:11:46 +02:00
nftlmount.c mtd: nftl: remove unnecessary oom message 2021-06-11 20:43:26 +02:00
rfd_ftl.c mtd: rfd_ftl: remove unnecessary oom message 2021-06-11 20:43:20 +02:00
sm_ftl.c drivers: mtd: sm_ftl: Fix alignment of block comment 2021-05-10 12:49:00 +02:00
sm_ftl.h
ssfdc.c