From: Michal Simek Date: Thu, 29 Apr 2010 11:02:17 +0000 (+0200) Subject: microblaze: Fix consistent-sync code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=385e1efafc73a5deeb20645ae8b227b4896852e2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git microblaze: Fix consistent-sync code PCI_DMA_FROMDEVICE should call invalidation not flushing. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/mm/consistent.c b/arch/microblaze/mm/consistent.c index 713431caf592..5a59dad62bd2 100644 --- a/arch/microblaze/mm/consistent.c +++ b/arch/microblaze/mm/consistent.c @@ -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);