109f958e7a62f473a69b057217915440a418cb91
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / patches-2.6.30 / 160-cfi-swap.patch
1 Index: linux-2.6.30.5/drivers/mtd/chips/cfi_cmdset_0002.c
2 ===================================================================
3 --- linux-2.6.30.5.orig/drivers/mtd/chips/cfi_cmdset_0002.c 2009-09-02 18:22:49.000000000 +0200
4 +++ linux-2.6.30.5/drivers/mtd/chips/cfi_cmdset_0002.c 2009-09-02 18:31:31.000000000 +0200
5 @@ -1090,7 +1090,9 @@
6 int retry_cnt = 0;
7
8 adr += chip->start;
9 -
10 +#ifdef CONFIG_IFXMIPS
11 + adr ^= 2;
12 +#endif
13 spin_lock(chip->mutex);
14 ret = get_chip(map, chip, adr, FL_WRITING);
15 if (ret) {