1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 03:39:22 +02:00
openwrt-xburst/target/linux/ifxmips/patches/160-cfi-swap.patch
juhosg 151259743b [kernel] update to 2.6.26.5 and 2.6.25.17
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12718 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-26 18:46:53 +00:00

14 lines
281 B
Diff

--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -1041,7 +1041,9 @@
int retry_cnt = 0;
adr += chip->start;
-
+#ifdef CONFIG_IFXMIPS
+ adr ^= 2;
+#endif
spin_lock(chip->mutex);
ret = get_chip(map, chip, adr, FL_WRITING);
if (ret) {