Commit e5e705ef authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: Fix consistent_sync properly

Turns out the problem was not in consistent_sync(), but blockops.c
overriding the the dmac_ functions with buggy ones... Undo previous
commit a9a31cc4, and remove blockops.c
from Makefile until it's completely removed from mainline kernel.
parent c9b28976
......@@ -51,4 +51,4 @@ obj-$(CONFIG_CPU_ARM1026) += proc-arm1026.o
obj-$(CONFIG_CPU_SA110) += proc-sa110.o
obj-$(CONFIG_CPU_SA1100) += proc-sa1100.o
obj-$(CONFIG_CPU_XSCALE) += proc-xscale.o
obj-$(CONFIG_CPU_V6) += proc-v6.o blockops.o
obj-$(CONFIG_CPU_V6) += proc-v6.o
......@@ -432,7 +432,7 @@ core_initcall(consistent_init);
void consistent_sync(void *vaddr, size_t size, int direction)
{
unsigned long start = (unsigned long)vaddr;
unsigned long end = start + size - 1;
unsigned long end = start + size;
switch (direction) {
case DMA_FROM_DEVICE: /* invalidate only */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment