diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2006-11-16 12:03:56 +0900 |
---|---|---|
committer | Kyungmin Park <kyungmin.park@samsung.com> | 2006-11-16 12:03:56 +0900 |
commit | f4f91ac3c833abbd7181ff2122c6b48a653b4e55 (patch) | |
tree | 16202b5e260e08e0b5401d55352d62b94ef8ad62 /drivers/mtd/onenand/onenand_bbt.c | |
parent | 08f782b60a633cbd926ef5e49de303a752390719 (diff) |
[MTD] OneNAND: Single bit error detection
Idea from Jarkko Lavinen
Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/mtd/onenand/onenand_bbt.c')
-rw-r--r-- | drivers/mtd/onenand/onenand_bbt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c index 1b00dac3d7d..c8067b8f20a 100644 --- a/drivers/mtd/onenand/onenand_bbt.c +++ b/drivers/mtd/onenand/onenand_bbt.c @@ -100,6 +100,7 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr bbm->bbt[i >> 3] |= 0x03 << (i & 0x6); printk(KERN_WARNING "Bad eraseblock %d at 0x%08x\n", i >> 1, (unsigned int) from); + mtd->ecc_stats.badblocks++; break; } } |