summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.8/0210-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-04-07 11:37:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-04-07 11:37:15 +0000
commit85675528da0cd5c29b14a77d8ea83150131b4520 (patch)
tree86a6da02a8538063a217f1ec6fe088c71c66c77b /target/linux/ramips/patches-3.8/0210-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
parentfde143b66f2e627280d966e0fe3a08ec5ba78d96 (diff)
downloadmaster-31e0f0ae-85675528da0cd5c29b14a77d8ea83150131b4520.tar.gz
master-31e0f0ae-85675528da0cd5c29b14a77d8ea83150131b4520.tar.bz2
master-31e0f0ae-85675528da0cd5c29b14a77d8ea83150131b4520.zip
ramips: add cfi_cmdset_0002 patches
The parallel flash access on the RT-N56U is broken without those patches. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 36242
Diffstat (limited to 'target/linux/ramips/patches-3.8/0210-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r--target/linux/ramips/patches-3.8/0210-mtd_fix_cfi_cmdset_0002_erase_status_check.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.8/0210-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-3.8/0210-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
new file mode 100644
index 0000000000..bf076fe2ec
--- /dev/null
+++ b/target/linux/ramips/patches-3.8/0210-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
+@@ -1927,7 +1927,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)) {
+@@ -2016,7 +2016,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;
+ }