mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mtd: nand: introduce NAND_CREATE_EMPTY_BBT
it will create an empty BBT table without considering vendor's BBT information. Vendor's information may be unavailable if the NAND controller has a different DATA & OOB layout or this information may be allready purged. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
7cba7b14fe
commit
453281a973
3 changed files with 5 additions and 2 deletions
|
|
@ -999,7 +999,8 @@ static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_desc
|
|||
continue;
|
||||
|
||||
/* Create the table in memory by scanning the chip(s) */
|
||||
create_bbt(mtd, buf, bd, chipsel);
|
||||
if (!(this->options & NAND_CREATE_EMPTY_BBT))
|
||||
create_bbt(mtd, buf, bd, chipsel);
|
||||
|
||||
td->version[i] = 1;
|
||||
if (md)
|
||||
|
|
|
|||
Loading…
Reference in a new issue