projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
f7214cf
)
Merge with /home/sr/git/u-boot/nand-timeout
author
Wolfgang Denk
<wd@pollux.denx.de>
Mon, 27 Nov 2006 21:49:11 +0000
(22:49 +0100)
committer
Wolfgang Denk
<wd@denx.de>
Mon, 27 Nov 2006 21:49:11 +0000
(22:49 +0100)
drivers/nand/nand_base.c
patch
|
blob
|
history
diff --git
a/drivers/nand/nand_base.c
b/drivers/nand/nand_base.c
index
b7a5d32
..
8237f4a
100644
(file)
--- a/
drivers/nand/nand_base.c
+++ b/
drivers/nand/nand_base.c
@@
-838,9
+838,9
@@
static int nand_wait(struct mtd_info *mtd, struct nand_chip *this, int state)
unsigned long timeo;
if (state == FL_ERASING)
- timeo
= CFG_HZ * 4
00;
+ timeo
+= (HZ * 400) / 10
00;
else
- timeo
= CFG_HZ * 2
0;
+ timeo
+= (HZ * 20) / 100
0;
if ((state == FL_ERASING) && (this->options & NAND_IS_AND))
this->cmdfunc(mtd, NAND_CMD_STATUS_MULTI, -1, -1);
@@
-852,8
+852,8
@@
static int nand_wait(struct mtd_info *mtd, struct nand_chip *this, int state)
while (1) {
if (get_timer(0) > timeo) {
printf("Timeout!");
- return 0;
-
}
+ return 0
x01
;
+ }
if (this->dev_ready) {
if (this->dev_ready(mtd))