Title: [4173] trunk/drivers/mtd/maps/bf5xx-flash.c: touchup SSYNC()
handling as pointed out by Will Newton on lkml
- Revision
- 4173
- Author
- vapier
- Date
- 2008-01-30 06:07:30 -0600 (Wed, 30 Jan 2008)
Log Message
touchup SSYNC() handling as pointed out by Will Newton on lkml
Diffstat
bf5xx-flash.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified Paths
Diff
Modified: trunk/drivers/mtd/maps/bf5xx-flash.c (4172 => 4173)
--- trunk/drivers/mtd/maps/bf5xx-flash.c 2008-01-30 11:32:43 UTC (rev 4172)
+++ trunk/drivers/mtd/maps/bf5xx-flash.c 2008-01-30 12:07:30 UTC (rev 4173)
@@ -51,7 +51,6 @@
local_irq_save(save->flags);
gpio_set_value(enet_flash_pin, 0);
- SSYNC();
save->ambctl0 = bfin_read_EBIU_AMBCTL0();
save->ambctl1 = bfin_read_EBIU_AMBCTL1();
@@ -78,9 +77,10 @@
struct flash_save save;
switch_to_flash(&save);
- SSYNC();
+
nValue = readw(map->virt + ofs);
SSYNC();
+
switch_back(&save);
test.x[0] = (u16)nValue;
@@ -119,7 +119,6 @@
switch_to_flash(&save);
- SSYNC();
writew(d, map->virt + ofs);
SSYNC();
@@ -133,6 +132,7 @@
switch_to_flash(&save);
memcpy(map->virt + to, from, len);
+ SSYNC();
switch_back(&save);
}
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits