diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-01 15:06:21 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-01 15:06:21 -0400 |
commit | 3d58f48ba05caed9118bce62b3047f8683438835 (patch) | |
tree | 94c911034f0e14ded73d3e9e6e9f8e22b6cad822 /arch/mips/mm/dma-default.c | |
parent | abfe0af9813153bae8c85d9bac966bafcb8ddab1 (diff) | |
parent | d9244b5d2fbfe9fa540024b410047af13ceec90f (diff) |
Merge branch 'linus' into irq/numa
Conflicts:
arch/mips/sibyte/bcm1480/irq.c
arch/mips/sibyte/sb1250/irq.c
Merge reason: we gathered a few conflicts plus update to latest upstream fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/mips/mm/dma-default.c')
-rw-r--r-- | arch/mips/mm/dma-default.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c index bed56f1ac837..4fdb7f5216b9 100644 --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c | |||
@@ -209,7 +209,7 @@ dma_addr_t dma_map_page(struct device *dev, struct page *page, | |||
209 | unsigned long addr; | 209 | unsigned long addr; |
210 | 210 | ||
211 | addr = (unsigned long) page_address(page) + offset; | 211 | addr = (unsigned long) page_address(page) + offset; |
212 | dma_cache_wback_inv(addr, size); | 212 | __dma_sync(addr, size, direction); |
213 | } | 213 | } |
214 | 214 | ||
215 | return plat_map_dma_mem_page(dev, page) + offset; | 215 | return plat_map_dma_mem_page(dev, page) + offset; |
@@ -217,23 +217,6 @@ dma_addr_t dma_map_page(struct device *dev, struct page *page, | |||
217 | 217 | ||
218 | EXPORT_SYMBOL(dma_map_page); | 218 | EXPORT_SYMBOL(dma_map_page); |
219 | 219 | ||
220 | void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, | ||
221 | enum dma_data_direction direction) | ||
222 | { | ||
223 | BUG_ON(direction == DMA_NONE); | ||
224 | |||
225 | if (!plat_device_is_coherent(dev) && direction != DMA_TO_DEVICE) { | ||
226 | unsigned long addr; | ||
227 | |||
228 | addr = dma_addr_to_virt(dma_address); | ||
229 | dma_cache_wback_inv(addr, size); | ||
230 | } | ||
231 | |||
232 | plat_unmap_dma_mem(dev, dma_address); | ||
233 | } | ||
234 | |||
235 | EXPORT_SYMBOL(dma_unmap_page); | ||
236 | |||
237 | void dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, | 220 | void dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, |
238 | enum dma_data_direction direction) | 221 | enum dma_data_direction direction) |
239 | { | 222 | { |