History

mtd: nand: Cleanup flags and fields for bad block marker position

Now that we have moved the information to the chip level, let's remove all the unused flags and fields.

Frieder Schrempf committed 7 years ago

Commit c9024671 parent bfd15c91 file · +1 −13Browse files

Unified · Split

include/linux/mtd/bbm.h+1−13
@@ -93,10 +93,7 @@ struct nand_bbt_descr { · 92 unmodified lines
93#define NAND_BBT_WRITE 0x0000200093#define NAND_BBT_WRITE 0x00002000
94/* Read and write back block contents when writing bbt */94/* Read and write back block contents when writing bbt */
95#define NAND_BBT_SAVECONTENT 0x0000400095#define NAND_BBT_SAVECONTENT 0x00004000
96/* Search good / bad pattern on the first and the second page */96
97#define NAND_BBT_SCAN2NDPAGE 0x00008000
98/* Search good / bad pattern on the last page of the eraseblock */
99#define NAND_BBT_SCANLASTPAGE 0x00010000
100/*97/*
101 * Use a flash based bad block table. By default, OOB identifier is saved in98 * Use a flash based bad block table. By default, OOB identifier is saved in
102 * OOB area. This option is passed to the default bad block table function.99 * OOB area. This option is passed to the default bad block table function.
@@ -123,13 +120,6 @@ struct nand_bbt_descr { · 20 unmodified lines
123/* The maximum number of blocks to scan for a bbt */120/* The maximum number of blocks to scan for a bbt */
124#define NAND_BBT_SCAN_MAXBLOCKS 4121#define NAND_BBT_SCAN_MAXBLOCKS 4
125 122
126/*
127 * Constants for oob configuration
128 */
129#define NAND_SMALL_BADBLOCK_POS 5
130#define NAND_LARGE_BADBLOCK_POS 0
131#define ONENAND_BADBLOCK_POS 0
132
133/*123/*
134 * Bad block scanning errors124 * Bad block scanning errors
135 */125 */
@@ -140,7 +130,6 @@ struct nand_bbt_descr { · 4 unmodified lines
140/**130/**
141 * struct bbm_info - [GENERIC] Bad Block Table data structure131 * struct bbm_info - [GENERIC] Bad Block Table data structure
142 * @bbt_erase_shift: [INTERN] number of address bits in a bbt entry132 * @bbt_erase_shift: [INTERN] number of address bits in a bbt entry
143 * @badblockpos: [INTERN] position of the bad block marker in the oob area
144 * @options: options for this descriptor133 * @options: options for this descriptor
145 * @bbt: [INTERN] bad block table pointer134 * @bbt: [INTERN] bad block table pointer
146 * @isbad_bbt: function to determine if a block is bad135 * @isbad_bbt: function to determine if a block is bad
@@ -150,7 +139,6 @@ struct nand_bbt_descr { · 3 unmodified lines
150 */139 */
151struct bbm_info {140struct bbm_info {
152 int bbt_erase_shift;141 int bbt_erase_shift;
153 int badblockpos;
154 int options;142 int options;
155 143
156 uint8_t *bbt;144 uint8_t *bbt;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t