2008-06-17 20:57:04 +08:00
|
|
|
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
|
|
|
|
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
|
2008-11-07 04:55:33 +08:00
|
|
|
@@ -1041,7 +1041,9 @@ static int __xipram do_write_oneword(str
|
2007-12-21 06:29:45 +08:00
|
|
|
int retry_cnt = 0;
|
2008-05-08 15:18:51 +08:00
|
|
|
|
|
|
|
adr += chip->start;
|
2007-12-21 06:29:45 +08:00
|
|
|
-
|
2007-12-22 08:17:22 +08:00
|
|
|
+#ifdef CONFIG_IFXMIPS
|
2007-12-21 06:29:45 +08:00
|
|
|
+ adr ^= 2;
|
|
|
|
+#endif
|
|
|
|
spin_lock(chip->mutex);
|
2008-05-08 15:18:51 +08:00
|
|
|
ret = get_chip(map, chip, adr, FL_WRITING);
|
|
|
|
if (ret) {
|