aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc/kernel/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/kernel/dma.c')
-rw-r--r--arch/openrisc/kernel/dma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/dma.c b/arch/openrisc/kernel/dma.c
index 140c99140649..906998bac957 100644
--- a/arch/openrisc/kernel/dma.c
+++ b/arch/openrisc/kernel/dma.c
@@ -141,6 +141,9 @@ or1k_map_page(struct device *dev, struct page *page,
141 unsigned long cl; 141 unsigned long cl;
142 dma_addr_t addr = page_to_phys(page) + offset; 142 dma_addr_t addr = page_to_phys(page) + offset;
143 143
144 if (attrs & DMA_ATTR_SKIP_CPU_SYNC)
145 return addr;
146
144 switch (dir) { 147 switch (dir) {
145 case DMA_TO_DEVICE: 148 case DMA_TO_DEVICE:
146 /* Flush the dcache for the requested range */ 149 /* Flush the dcache for the requested range */