Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84276
b: refs/heads/master
c: b2581be
h: refs/heads/master
v: v3
  • Loading branch information
Kyungmin Park committed Jan 29, 2008
1 parent 719d124 commit cd4929b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: e71f04fc9234b14636887ceb5862755f1690642c
refs/heads/master: b2581be291aa8595eadf3d6933d04d0f1d01b46d
6 changes: 2 additions & 4 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,12 +1119,10 @@ static int onenand_bbt_wait(struct mtd_info *mtd, int state)
interrupt = this->read_word(this->base + ONENAND_REG_INTERRUPT);
ctrl = this->read_word(this->base + ONENAND_REG_CTRL_STATUS);

/* Initial bad block case: 0x2400 or 0x0400 */
if (ctrl & ONENAND_CTRL_ERROR) {
printk(KERN_DEBUG "onenand_bbt_wait: controller error = 0x%04x\n", ctrl);
/* Initial bad block case */
if (ctrl & ONENAND_CTRL_LOAD)
return ONENAND_BBT_READ_ERROR;
return ONENAND_BBT_READ_FATAL_ERROR;
return ONENAND_BBT_READ_ERROR;
}

if (interrupt & ONENAND_INT_READ) {
Expand Down

0 comments on commit cd4929b

Please sign in to comment.