|
@@ -56,13 +56,6 @@ static void loongson_dma_sync_sg_for_device(struct device *dev,
|
|
|
mb();
|
|
|
}
|
|
|
|
|
|
-static int loongson_dma_supported(struct device *dev, u64 mask)
|
|
|
-{
|
|
|
- if (mask > DMA_BIT_MASK(loongson_sysconf.dma_mask_bits))
|
|
|
- return 0;
|
|
|
- return swiotlb_dma_supported(dev, mask);
|
|
|
-}
|
|
|
-
|
|
|
dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
|
|
|
{
|
|
|
long nid;
|
|
@@ -99,7 +92,7 @@ static const struct dma_map_ops loongson_dma_map_ops = {
|
|
|
.sync_sg_for_cpu = swiotlb_sync_sg_for_cpu,
|
|
|
.sync_sg_for_device = loongson_dma_sync_sg_for_device,
|
|
|
.mapping_error = swiotlb_dma_mapping_error,
|
|
|
- .dma_supported = loongson_dma_supported,
|
|
|
+ .dma_supported = swiotlb_dma_supported,
|
|
|
};
|
|
|
|
|
|
void __init plat_swiotlb_setup(void)
|