summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-2.6.34/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2010-05-26 15:53:05 +0000
committerJohn Crispin <john@openwrt.org>2010-05-26 15:53:05 +0000
commit0ab7d18462b9ea1d46191aedb16d4380d3c1aa0a (patch)
tree989917a6eaa2f9f099e384be750c1ccae3b9380b /target/linux/ramips/patches-2.6.34/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
parente583494eca8890681218b3b5ca00d61a35d153e2 (diff)
downloadmaster-31e0f0ae-0ab7d18462b9ea1d46191aedb16d4380d3c1aa0a.tar.gz
master-31e0f0ae-0ab7d18462b9ea1d46191aedb16d4380d3c1aa0a.tar.bz2
master-31e0f0ae-0ab7d18462b9ea1d46191aedb16d4380d3c1aa0a.zip
update to 2.6.34, signed of by russiane39, thx
SVN-Revision: 21573
Diffstat (limited to 'target/linux/ramips/patches-2.6.34/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r--target/linux/ramips/patches-2.6.34/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-2.6.34/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-2.6.34/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
new file mode 100644
index 0000000000..a4fb2352f2
--- /dev/null
+++ b/target/linux/ramips/patches-2.6.34/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
@@ -0,0 +1,20 @@
+--- a/drivers/mtd/chips/cfi_cmdset_0002.c
++++ b/drivers/mtd/chips/cfi_cmdset_0002.c
+@@ -1557,7 +1557,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)) {
+@@ -1645,7 +1645,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;
+ }