diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-01-26 09:57:38 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-01-26 09:57:38 +0000 |
commit | b34feab713e53f9c6d852c2c256438e936744ab4 (patch) | |
tree | f21d954cef6d0d5ceff33b04bb4c5a07946c4a32 /target/linux/ramips/patches-2.6.32/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | |
parent | c5ac3f64aba4ee79db164618f00727dfca0d9ade (diff) | |
download | master-31e0f0ae-b34feab713e53f9c6d852c2c256438e936744ab4.tar.gz master-31e0f0ae-b34feab713e53f9c6d852c2c256438e936744ab4.tar.bz2 master-31e0f0ae-b34feab713e53f9c6d852c2c256438e936744ab4.zip |
ramips: add preliminary support for 2.6.32
SVN-Revision: 19343
Diffstat (limited to 'target/linux/ramips/patches-2.6.32/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r-- | target/linux/ramips/patches-2.6.32/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-2.6.32/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-2.6.32/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch new file mode 100644 index 0000000000..22aefe0d46 --- /dev/null +++ b/target/linux/ramips/patches-2.6.32/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 +@@ -1568,7 +1568,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)) { +@@ -1656,7 +1656,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; + } |