Skip to content

Commit 9eeff82

Browse files
computersforpeacededekind
authored andcommitted
mtd: nand: improve comment on NAND_BBT_DYNAMIC_STRUCT
In an attempt to improve the documentation of the BBT code, I am expanding the comments I left in commit: 58373ff mtd: nand: more BB Detection refactoring and dynamic scan options Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
1 parent b4dc53e commit 9eeff82

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎include/linux/mtd/bbm.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ struct nand_bbt_descr {
113113
/* Do not store flash based bad block table in OOB area; store it in-band */
114114
#define NAND_BBT_NO_OOB 0x00040000
115115

116-
/* The nand_bbt_descr was created dynamicaly and must be freed */
116+
/*
117+
* Flag set by nand_create_default_bbt_descr(), marking that the nand_bbt_descr
118+
* was allocated dynamicaly and must be freed in nand_release(). Has no meaning
119+
* in nand_chip.bbt_options.
120+
*/
117121
#define NAND_BBT_DYNAMICSTRUCT 0x80000000
118122

119123
/* The maximum number of blocks to scan for a bbt */

0 commit comments

Comments
 (0)