Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[MIPS] Fix dma_sync_*_for_device() functions

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Thomas Bogendoerfer and committed by
Ralf Baechle
9b43fb6b 40139bd4

+3 -3
+3 -3
arch/mips/mm/dma-default.c
··· 246 246 { 247 247 BUG_ON(direction == DMA_NONE); 248 248 249 - if (cpu_is_noncoherent_r10000(dev)) { 249 + if (!plat_device_is_coherent(dev)) { 250 250 unsigned long addr; 251 251 252 - addr = plat_dma_addr_to_phys(dma_handle); 252 + addr = PAGE_OFFSET + plat_dma_addr_to_phys(dma_handle); 253 253 __dma_sync(addr, size, direction); 254 254 } 255 255 } ··· 276 276 { 277 277 BUG_ON(direction == DMA_NONE); 278 278 279 - if (cpu_is_noncoherent_r10000(dev)) { 279 + if (!plat_device_is_coherent(dev)) { 280 280 unsigned long addr; 281 281 282 282 addr = PAGE_OFFSET + plat_dma_addr_to_phys(dma_handle);