diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-25 21:28:42 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-25 21:28:42 +0000 |
commit | 5412b6f32e49d2319262c9413125ae11ec4b4544 (patch) | |
tree | 6e2e3b4b19a420e28e56e91bb3c1698a6d76257b /target/linux/ramips/patches-3.8/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | |
parent | a08646642eb3692b0a4a79d38b54dbbea00587d5 (diff) | |
download | master-31e0f0ae-5412b6f32e49d2319262c9413125ae11ec4b4544.tar.gz master-31e0f0ae-5412b6f32e49d2319262c9413125ae11ec4b4544.tar.bz2 master-31e0f0ae-5412b6f32e49d2319262c9413125ae11ec4b4544.zip |
ramips: add support for 3.8
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35801
Diffstat (limited to 'target/linux/ramips/patches-3.8/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r-- | target/linux/ramips/patches-3.8/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.8/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-3.8/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch new file mode 100644 index 0000000000..91b887f922 --- /dev/null +++ b/target/linux/ramips/patches-3.8/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 +@@ -1939,7 +1939,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)) { +@@ -2028,7 +2028,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; + } |