microblaze: Fix consistent-sync code
authorMichal Simek <monstr@monstr.eu>
Thu, 29 Apr 2010 11:02:17 +0000 (13:02 +0200)
committerMichal Simek <monstr@monstr.eu>
Thu, 6 May 2010 09:22:00 +0000 (11:22 +0200)
PCI_DMA_FROMDEVICE should call invalidation not flushing.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/mm/consistent.c

index 713431caf592d8332887259fded42d5872d8318e..5a59dad62bd22bbe5c3d01b11d9874bcfe08dad4 100644 (file)
@@ -229,7 +229,7 @@ void consistent_sync(void *vaddr, size_t size, int direction)
        case PCI_DMA_NONE:
                BUG();
        case PCI_DMA_FROMDEVICE:        /* invalidate only */
-               flush_dcache_range(start, end);
+               invalidate_dcache_range(start, end);
                break;
        case PCI_DMA_TODEVICE:          /* writeback only */
                flush_dcache_range(start, end);