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

Commit 9e3eefda authored by Sandeep Singh's avatar Sandeep Singh
Browse files

cnss2: removed unused function and variable of IOMMU APIs



IOMMU mapping has been deprecated from kernel. So, removing
the unused function and variable from wlan platform driver.

Change-Id: Id4ad3de3a2e672ec318549cffce4b703645c3f6c
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent 1fbb233d
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -2241,7 +2241,6 @@ static int cnss_pci_init_smmu(struct cnss_pci_data *pci_priv)
	cnss_pr_dbg("Initializing SMMU\n");

	pci_priv->iommu_domain = iommu_get_domain_for_dev(&pci_dev->dev);
	pci_priv->smmu_mapping.domain = pci_priv->iommu_domain;
	ret = of_property_read_string(of_node, "qcom,iommu-dma",
				      &iommu_dma_type);
	if (!ret && !strcmp("fastmap", iommu_dma_type)) {
@@ -2283,20 +2282,8 @@ static int cnss_pci_init_smmu(struct cnss_pci_data *pci_priv)
static void cnss_pci_deinit_smmu(struct cnss_pci_data *pci_priv)
{
	pci_priv->iommu_domain = NULL;
	pci_priv->smmu_mapping.domain = NULL;
}

struct dma_iommu_mapping *cnss_smmu_get_mapping(struct device *dev)
{
	struct cnss_pci_data *pci_priv = cnss_get_pci_priv(to_pci_dev(dev));

	if (!pci_priv)
		return NULL;

	return &pci_priv->smmu_mapping;
}
EXPORT_SYMBOL(cnss_smmu_get_mapping);

struct iommu_domain *cnss_smmu_get_domain(struct device *dev)
{
	struct cnss_pci_data *pci_priv = cnss_get_pci_priv(to_pci_dev(dev));
+0 −1
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ struct cnss_pci_data {
	u16 def_link_speed;
	u16 def_link_width;
	u8 monitor_wake_intr;
	struct dma_iommu_mapping smmu_mapping;
	struct iommu_domain *iommu_domain;
	u8 smmu_s1_enable;
	dma_addr_t smmu_iova_start;
+0 −1
Original line number Diff line number Diff line
@@ -170,7 +170,6 @@ extern int cnss_get_fw_files_for_target(struct device *dev,
					u32 target_type, u32 target_version);
extern int cnss_get_platform_cap(struct device *dev,
				 struct cnss_platform_cap *cap);
extern struct dma_iommu_mapping *cnss_smmu_get_mapping(struct device *dev);
extern struct iommu_domain *cnss_smmu_get_domain(struct device *dev);
extern int cnss_smmu_map(struct device *dev,
			 phys_addr_t paddr, uint32_t *iova_addr, size_t size);