Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45702
b: refs/heads/master
c: b3c9f8b
h: refs/heads/master
v: v3
  • Loading branch information
Kyungmin Park authored and Artem Bityutskiy committed Jan 10, 2007
1 parent 6d02559 commit 948551d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8de85d557004d6d4e4cf79ecd6b97339b986fe9
refs/heads/master: b3c9f8bfe7ab366a5d2495ebe5d2dc6fd7368122
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@ static int onenand_wait(struct mtd_info *mtd, int state)
int ecc = this->read_word(this->base + ONENAND_REG_ECC_STATUS);
if (ecc) {
DEBUG(MTD_DEBUG_LEVEL0, "onenand_wait: ECC error = 0x%04x\n", ecc);
if (ecc & ONENAND_ECC_2BIT_ALL)
if (ecc & ONENAND_ECC_2BIT_ALL) {
mtd->ecc_stats.failed++;
else if (ecc & ONENAND_ECC_1BIT_ALL)
return ecc;
} else if (ecc & ONENAND_ECC_1BIT_ALL)
mtd->ecc_stats.corrected++;
}
return ecc;
}

return 0;
Expand Down

0 comments on commit 948551d

Please sign in to comment.