Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4510649 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: dma-mapping-fast: Remove dma_supported op



Assume a configuration with a device behind an iommu.
The device is able to access all addresses that the iommu is able to
access. In current configurations, the iommu and cpu can access the same
address space, so dma_supported should always return true. Since this is
the default behavior, remove the function.

Change-Id: Ia6bf4029c025f21502c9345ffd781f17f8706851
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent b0675bae
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -659,12 +659,6 @@ static void fast_smmu_dma_unmap_resource(
	spin_unlock_irqrestore(&mapping->lock, flags);
}


static int fast_smmu_dma_supported(struct device *dev, u64 mask)
{
	return mask <= 0xffffffff;
}

static int fast_smmu_mapping_error(struct device *dev,
				   dma_addr_t dma_addr)
{
@@ -718,7 +712,6 @@ static const struct dma_map_ops fast_smmu_dma_ops = {
	.sync_sg_for_device = fast_smmu_sync_sg_for_device,
	.map_resource = fast_smmu_dma_map_resource,
	.unmap_resource = fast_smmu_dma_unmap_resource,
	.dma_supported = fast_smmu_dma_supported,
	.mapping_error = fast_smmu_mapping_error,
};