Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4495
b: refs/heads/master
c: dfd6129
h: refs/heads/master
i:
  4493: 73c1c86
  4491: 0dc775d
  4487: fdef3b5
  4479: 3bdd296
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed May 23, 2005
1 parent e6489c0 commit 58eee04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: fdf2fd52746bbffeffa19e24cb0608abc5429bc2
refs/heads/master: dfd61294403cce7ca2263674f420c3417093cb56
11 changes: 9 additions & 2 deletions trunk/drivers/mtd/nand/diskonchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Interface to generic NAND code for M-Systems DiskOnChip devices
*
* $Id: diskonchip.c,v 1.48 2005/01/31 22:22:21 gleixner Exp $
* $Id: diskonchip.c,v 1.49 2005/02/22 21:48:21 gleixner Exp $
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -410,7 +410,12 @@ static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr)
doc200x_hwcontrol(mtd, NAND_CTL_SETALE);
this->write_byte(mtd, 0);
doc200x_hwcontrol(mtd, NAND_CTL_CLRALE);


/* We cant' use dev_ready here, but at least we wait for the
* command to complete
*/
udelay(50);

ret = this->read_byte(mtd) << 8;
ret |= this->read_byte(mtd);

Expand All @@ -429,6 +434,8 @@ static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr)
doc2000_write_byte(mtd, 0);
doc200x_hwcontrol(mtd, NAND_CTL_CLRALE);

udelay(50);

ident.dword = readl(docptr + DoC_2k_CDSN_IO);
if (((ident.byte[0] << 8) | ident.byte[1]) == ret) {
printk(KERN_INFO "DiskOnChip 2000 responds to DWORD access\n");
Expand Down

0 comments on commit 58eee04

Please sign in to comment.