mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-19 17:47:15 +03:00
21 lines
538 B
Diff
21 lines
538 B
Diff
|
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
|
||
|
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
|
||
|
@@ -1631,7 +1631,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)) {
|
||
|
@@ -1719,7 +1719,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;
|
||
|
}
|