mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mtd: nand: consolidate redundant flash-based BBT flags
This patch works with the following three flags from two headers (nand.h and bbm.h): (1) NAND_USE_FLASH_BBT (nand.h) (2) NAND_USE_FLASH_BBT_NO_OOB (nand.h) (3) NAND_BBT_NO_OOB (bbm.h) These flags are all related and interdependent, yet they were in different headers. Flag (2) is simply the combination of (1) and (3) and can be eliminated. This patch accomplishes the following: * eliminate NAND_USE_FLASH_BBT_NO_OOB (i.e., flag (2)) * move NAND_USE_FLASH_BBT (i.e., flag (1)) to bbm.h It's important to note that because (1) and (3) are now both found in bbm.h, they should NOT be used in the "nand_chip.options" field. I removed a small section from the mtdnand DocBook because it referes to NAND_USE_FLASH_BBT in nand.h, which has been moved to bbm.h. Signed-off-by: Brian Norris <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
This commit is contained in:
parent
5fb1549dfc
commit
a40f73419f
33 changed files with 65 additions and 58 deletions
|
|
@ -163,7 +163,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
|
|||
this->ecc.mode = NAND_ECC_SOFT;
|
||||
|
||||
/* Enable the following for a flash based bad block table */
|
||||
/* this->options = NAND_USE_FLASH_BBT; */
|
||||
/* this->bbt_options = NAND_USE_FLASH_BBT; */
|
||||
|
||||
/* Scan to find existence of the device */
|
||||
if (nand_scan(crisv32_mtd, 1)) {
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
|
|||
this->ecc.mode = NAND_ECC_SOFT;
|
||||
|
||||
/* Enable the following for a flash based bad block table */
|
||||
/* this->options = NAND_USE_FLASH_BBT; */
|
||||
/* this->bbt_options = NAND_USE_FLASH_BBT; */
|
||||
|
||||
/* Scan to find existence of the device */
|
||||
if (nand_scan(crisv32_mtd, 1)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue