Skip to contentSkip to conversation

OneNAND: Check first or second pages for bad block information

PATCH New Adrian Hunter 1 participant 1 message Jan 19, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OneNAND: Check first or second pages for bad block information

OneNAND records bad block information in the out-of-band area of either the first or second page of a block. Due to a logic error, only the first page was being checked.

---
drivers/mtd/onenand/onenand_bbt.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/onenand/onenand_bbt.c +0 -0
index 90db8f5..aa46b7f 100644
@@ -68,7 +68,7 @@ static int create_bbt(struct mtd_info *m
 
	printk(KERN_INFO "Scanning device for bad blocks\n");

- len = 1;
+ len = 2;

	/* We need only read few bytes from the OOB area */
	scanlen = ooblen = 0;
Signature · 1 line
1.4.3