cf749be10de01fe58e961bad8cc49246fedeb47f
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / patches / 160-cfi-swap.patch
1 Index: linux-2.6.25.4/drivers/mtd/chips/cfi_cmdset_0002.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/mtd/chips/cfi_cmdset_0002.c
4 +++ linux-2.6.25.4/drivers/mtd/chips/cfi_cmdset_0002.c
5 @@ -1015,7 +1015,9 @@ static int __xipram do_write_oneword(str
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) {