1 --- a/drivers/mtd/chips/cfi_cmdset_0002.c
2 +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
3 @@ -1007,7 +1007,9 @@ static int __xipram do_write_oneword(str
13 spin_lock(chip->mutex);
14 @@ -1291,7 +1293,11 @@ static int __xipram do_write_buffer(stru
16 while(z < words * map_bankwidth(map)) {
17 datum = map_word_load(map, buf);
19 + map_write(map, datum, (adr + z) ^ 0x2);
21 map_write(map, datum, adr + z);
24 z += map_bankwidth(map);
25 buf += map_bankwidth(map);