summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches-2.6.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-07-03 15:02:06 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-07-03 15:02:06 +0000
commit0fde070cf96233b124204a0e061897270b060e4c (patch)
tree8c1f10a682895d2d881e4e3e91312dbaace6cc6d /target/linux/ramips/patches-2.6.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
parent1c96bc9abc83c9260788631829060fcb1dabc877 (diff)
downloadmtk-20170518-0fde070cf96233b124204a0e061897270b060e4c.zip
mtk-20170518-0fde070cf96233b124204a0e061897270b060e4c.tar.gz
mtk-20170518-0fde070cf96233b124204a0e061897270b060e4c.tar.bz2
ramips: add 2.6.39 support
Based on the patches from #9625 SVN-Revision: 27396
Diffstat (limited to 'target/linux/ramips/patches-2.6.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r--target/linux/ramips/patches-2.6.39/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.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-2.6.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
new file mode 100644
index 0000000..93062be
--- /dev/null
+++ b/target/linux/ramips/patches-2.6.39/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
+@@ -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;
+ }