diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c index cd8aad8226dd5c151989e1233603d9cb42781bf8..08450a1a5b5fd06f0cc0ef74b2a7de317473f6c8 100644 --- a/arch/arc/mm/dma.c +++ b/arch/arc/mm/dma.c @@ -158,7 +158,10 @@ static dma_addr_t arc_dma_map_page(struct device *dev, struct page *page, unsigned long attrs) { phys_addr_t paddr = page_to_phys(page) + offset; - _dma_cache_sync(paddr, size, dir); + + if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC)) + _dma_cache_sync(paddr, size, dir); + return plat_phys_to_dma(dev, paddr); }