diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-04-21 12:30:50 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-04-21 12:30:50 +0000 |
commit | 5c325b0057c3ae3447c396f0f27c8c1628321a4b (patch) | |
tree | ede9e3cdc6d26d484bbed214c2ee82ac63b6e014 /target/linux/ramips/patches-3.3/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | |
parent | 7f902c962b3314665cbccf013e3bac599d514581 (diff) | |
download | mtk-20170518-5c325b0057c3ae3447c396f0f27c8c1628321a4b.zip mtk-20170518-5c325b0057c3ae3447c396f0f27c8c1628321a4b.tar.gz mtk-20170518-5c325b0057c3ae3447c396f0f27c8c1628321a4b.tar.bz2 |
ramips: add support for 3.3
SVN-Revision: 31403
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.patch | 20 |
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 0000000..494b790 --- /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; + } |