Openwrt/target/linux/ifxmips/patches/160-cfi-swap.patch
Gabor Juhos 821170133f update to 2.6.26.5 and 2.6.25.17
SVN-Revision: 12718
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) {