|
@@ -37,7 +37,6 @@ static dma_addr_t nommu_map_page(struct device *dev, struct page *page,
|
|
|
WARN_ON(size == 0);
|
|
|
if (!check_addr("map_single", dev, bus, size))
|
|
|
return NOMMU_MAPPING_ERROR;
|
|
|
- flush_write_buffers();
|
|
|
return bus;
|
|
|
}
|
|
|
|
|
@@ -72,25 +71,9 @@ static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg,
|
|
|
return 0;
|
|
|
s->dma_length = s->length;
|
|
|
}
|
|
|
- flush_write_buffers();
|
|
|
return nents;
|
|
|
}
|
|
|
|
|
|
-static void nommu_sync_single_for_device(struct device *dev,
|
|
|
- dma_addr_t addr, size_t size,
|
|
|
- enum dma_data_direction dir)
|
|
|
-{
|
|
|
- flush_write_buffers();
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-static void nommu_sync_sg_for_device(struct device *dev,
|
|
|
- struct scatterlist *sg, int nelems,
|
|
|
- enum dma_data_direction dir)
|
|
|
-{
|
|
|
- flush_write_buffers();
|
|
|
-}
|
|
|
-
|
|
|
static int nommu_mapping_error(struct device *dev, dma_addr_t dma_addr)
|
|
|
{
|
|
|
return dma_addr == NOMMU_MAPPING_ERROR;
|
|
@@ -101,8 +84,6 @@ const struct dma_map_ops nommu_dma_ops = {
|
|
|
.free = dma_generic_free_coherent,
|
|
|
.map_sg = nommu_map_sg,
|
|
|
.map_page = nommu_map_page,
|
|
|
- .sync_single_for_device = nommu_sync_single_for_device,
|
|
|
- .sync_sg_for_device = nommu_sync_sg_for_device,
|
|
|
.is_phys = 1,
|
|
|
.mapping_error = nommu_mapping_error,
|
|
|
.dma_supported = x86_dma_supported,
|