diff options
Diffstat (limited to 'arch/arc/mm/dma.c')
| -rw-r--r-- | arch/arc/mm/dma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c index cd8aad8226dd..08450a1a5b5f 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, | |||
| 158 | unsigned long attrs) | 158 | unsigned long attrs) |
| 159 | { | 159 | { |
| 160 | phys_addr_t paddr = page_to_phys(page) + offset; | 160 | phys_addr_t paddr = page_to_phys(page) + offset; |
| 161 | _dma_cache_sync(paddr, size, dir); | 161 | |
| 162 | if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC)) | ||
| 163 | _dma_cache_sync(paddr, size, dir); | ||
| 164 | |||
| 162 | return plat_phys_to_dma(dev, paddr); | 165 | return plat_phys_to_dma(dev, paddr); |
| 163 | } | 166 | } |
| 164 | 167 | ||
