diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-02-12 12:52:14 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-02-12 12:52:14 +0000 |
commit | a287c60a61bbad21af22523ca50281850dd1e2c1 (patch) | |
tree | 96d48290c14dd4976311bb801c031b68285a74f2 /target/linux/ramips/patches-3.2/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | |
parent | 388013b0ce70c0cc7a40d031a8f94188f1214ad0 (diff) | |
download | master-31e0f0ae-a287c60a61bbad21af22523ca50281850dd1e2c1.tar.gz master-31e0f0ae-a287c60a61bbad21af22523ca50281850dd1e2c1.tar.bz2 master-31e0f0ae-a287c60a61bbad21af22523ca50281850dd1e2c1.zip |
ramips: add initial support for 3.2
SVN-Revision: 30476
Diffstat (limited to 'target/linux/ramips/patches-3.2/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r-- | target/linux/ramips/patches-3.2/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.2/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-3.2/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.2/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; + } |