diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-22 12:11:13 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-12-22 12:11:13 +0000 |
commit | b44cdcde8e9af4ac2cc4f94f11452a9c7d1f7dae (patch) | |
tree | 4088ff0bc830852ed01fd4cd47b3d4e85dfd29e9 /target/linux/ramips/patches-3.7/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | |
parent | fcf65bdee39b96757469988339d46bf89c26570d (diff) | |
download | mtk-20170518-b44cdcde8e9af4ac2cc4f94f11452a9c7d1f7dae.zip mtk-20170518-b44cdcde8e9af4ac2cc4f94f11452a9c7d1f7dae.tar.gz mtk-20170518-b44cdcde8e9af4ac2cc4f94f11452a9c7d1f7dae.tar.bz2 |
ramips: add support for 3.7
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34845
Diffstat (limited to 'target/linux/ramips/patches-3.7/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r-- | target/linux/ramips/patches-3.7/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.7/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-3.7/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch new file mode 100644 index 0000000..bf076fe --- /dev/null +++ b/target/linux/ramips/patches-3.7/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 +@@ -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; + } |