diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-12-04 20:27:03 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-12-04 20:27:03 +0000 |
commit | 34a28b34370830448d744f4bb5dd6905ffd3d9e2 (patch) | |
tree | f89dce2f46714984c00d784de052f9292aa8453a /target/linux/ar71xx/patches-2.6.32/108-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | |
parent | ba3154ad3471bfb34b22d856b107348d7200fa9c (diff) | |
download | master-187ad058-34a28b34370830448d744f4bb5dd6905ffd3d9e2.tar.gz master-187ad058-34a28b34370830448d744f4bb5dd6905ffd3d9e2.tar.bz2 master-187ad058-34a28b34370830448d744f4bb5dd6905ffd3d9e2.zip |
ar71xx: experimental 2.6.32 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18638 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/patches-2.6.32/108-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r-- | target/linux/ar71xx/patches-2.6.32/108-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-2.6.32/108-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ar71xx/patches-2.6.32/108-mtd_fix_cfi_cmdset_0002_erase_status_check.patch new file mode 100644 index 0000000000..22aefe0d46 --- /dev/null +++ b/target/linux/ar71xx/patches-2.6.32/108-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; + } |