You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
538 B
21 lines
538 B
14 years ago
|
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
|
||
|
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
|
||
|
@@ -1645,7 +1645,7 @@ static int __xipram do_erase_chip(struct
|
||
|
chip->erase_suspended = 0;
|
||
|
}
|
||
|
|
||
|
- if (chip_ready(map, adr))
|
||
|
+ if (chip_good(map, adr, map_word_ff(map)))
|
||
|
break;
|
||
|
|
||
|
if (time_after(jiffies, timeo)) {
|
||
|
@@ -1733,7 +1733,7 @@ static int __xipram do_erase_oneblock(st
|
||
|
chip->erase_suspended = 0;
|
||
|
}
|
||
|
|
||
|
- if (chip_ready(map, adr)) {
|
||
|
+ if (chip_good(map, adr, map_word_ff(map))) {
|
||
|
xip_enable(map, chip, adr);
|
||
|
break;
|
||
|
}
|