aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.3/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-21 12:30:50 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-04-21 12:30:50 +0000
commitfe354a0b951e2cba0964d13aa8041247d6199caf (patch)
tree7f963d45ad5d5281517053ca0906da8367863689 /target/linux/ramips/patches-3.3/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
parent9cbdb584bf693ad678382cca48bac1695fc0a487 (diff)
downloadupstream-fe354a0b951e2cba0964d13aa8041247d6199caf.tar.gz
upstream-fe354a0b951e2cba0964d13aa8041247d6199caf.tar.bz2
upstream-fe354a0b951e2cba0964d13aa8041247d6199caf.zip
ramips: add support for 3.3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31403 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.3/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r--target/linux/ramips/patches-3.3/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.3/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-3.3/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
new file mode 100644
index 0000000000..494b790ae2
--- /dev/null
+++ b/target/linux/ramips/patches-3.3/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
+@@ -1627,7 +1627,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)) {
+@@ -1715,7 +1715,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;
+ }