diff options
-rw-r--r-- | arch/mips/mm/c-r4k.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index eeb642e4066e..b9aabb998a32 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -604,6 +604,7 @@ static void r4k_dma_cache_wback_inv(unsigned long addr, unsigned long size) | |||
604 | r4k_blast_scache(); | 604 | r4k_blast_scache(); |
605 | else | 605 | else |
606 | blast_scache_range(addr, addr + size); | 606 | blast_scache_range(addr, addr + size); |
607 | __sync(); | ||
607 | return; | 608 | return; |
608 | } | 609 | } |
609 | 610 | ||
@@ -620,6 +621,7 @@ static void r4k_dma_cache_wback_inv(unsigned long addr, unsigned long size) | |||
620 | } | 621 | } |
621 | 622 | ||
622 | bc_wback_inv(addr, size); | 623 | bc_wback_inv(addr, size); |
624 | __sync(); | ||
623 | } | 625 | } |
624 | 626 | ||
625 | static void r4k_dma_cache_inv(unsigned long addr, unsigned long size) | 627 | static void r4k_dma_cache_inv(unsigned long addr, unsigned long size) |
@@ -647,6 +649,7 @@ static void r4k_dma_cache_inv(unsigned long addr, unsigned long size) | |||
647 | (addr + size - 1) & almask); | 649 | (addr + size - 1) & almask); |
648 | blast_inv_scache_range(addr, addr + size); | 650 | blast_inv_scache_range(addr, addr + size); |
649 | } | 651 | } |
652 | __sync(); | ||
650 | return; | 653 | return; |
651 | } | 654 | } |
652 | 655 | ||
@@ -663,6 +666,7 @@ static void r4k_dma_cache_inv(unsigned long addr, unsigned long size) | |||
663 | } | 666 | } |
664 | 667 | ||
665 | bc_inv(addr, size); | 668 | bc_inv(addr, size); |
669 | __sync(); | ||
666 | } | 670 | } |
667 | #endif /* CONFIG_DMA_NONCOHERENT */ | 671 | #endif /* CONFIG_DMA_NONCOHERENT */ |
668 | 672 | ||