Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195964
b: refs/heads/master
c: c37cb56
h: refs/heads/master
v: v3
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed May 14, 2010
1 parent 87659da commit bb490cc
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 3328dc315914aa6db486da2ceb021b6f0b36b877
refs/heads/master: c37cb56fb15d0f8e4180b19eed20f52fe8641b54
12 changes: 9 additions & 3 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -3763,6 +3763,12 @@ static int onenand_probe(struct mtd_info *mtd)
/* Restore system configuration 1 */
this->write_word(syscfg, this->base + ONENAND_REG_SYS_CFG1);

/* Workaround */
if (syscfg & ONENAND_SYS_CFG1_SYNC_WRITE) {
bram_maf_id = this->read_word(this->base + ONENAND_REG_MANUFACTURER_ID);
bram_dev_id = this->read_word(this->base + ONENAND_REG_DEVICE_ID);
}

/* Check manufacturer ID */
if (onenand_check_maf(bram_maf_id))
return -ENXIO;
Expand All @@ -3782,6 +3788,9 @@ static int onenand_probe(struct mtd_info *mtd)
this->device_id = dev_id;
this->version_id = ver_id;

/* Check OneNAND features */
onenand_check_features(mtd);

density = onenand_get_density(dev_id);
if (FLEXONENAND(this)) {
this->dies = ONENAND_IS_DDP(this) ? 2 : 1;
Expand Down Expand Up @@ -3833,9 +3842,6 @@ static int onenand_probe(struct mtd_info *mtd)
else
mtd->size = this->chipsize;

/* Check OneNAND features */
onenand_check_features(mtd);

/*
* We emulate the 4KiB page and 256KiB erase block size
* But oobsize is still 64 bytes.
Expand Down

0 comments on commit bb490cc

Please sign in to comment.