diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-03 15:02:06 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-07-03 15:02:06 +0000 |
commit | f7ed0bfe29acdca9ba8b27686b3d89af5f338cc4 (patch) | |
tree | ba24911cc8fd3de990314de7760b452b50180cb8 /target/linux/ramips/patches-2.6.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch | |
parent | c8de904b8c3260e4dcf0e0ac170e886afc4b0e27 (diff) |
ramips: add 2.6.39 support
Based on the patches from #9625
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27396 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-2.6.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch')
-rw-r--r-- | target/linux/ramips/patches-2.6.39/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.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch b/target/linux/ramips/patches-2.6.39/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch new file mode 100644 index 000000000..93062be84 --- /dev/null +++ b/target/linux/ramips/patches-2.6.39/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 +@@ -1631,7 +1631,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)) { +@@ -1719,7 +1719,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; + } |