Przeglądaj źródła

qcacmn: Remove pld smmu platform API from QDF

As part of SMMU QDF cleanup remove platform pld API from
QDF.

Change-Id: Ib257969257e88b4f6a73c661b270924ce07bf398
CRs-Fixed: 2202910
Sravan Kumar Kairam 7 lat temu
rodzic
commit
5951a618f8
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 1 1
      qdf/linux/src/i_qdf_mem.h
  2. 2 0
      qdf/linux/src/i_qdf_types.h

+ 1 - 1
qdf/linux/src/i_qdf_mem.h

@@ -241,7 +241,7 @@ __qdf_mem_paddr_from_dmaaddr(qdf_device_t osdev,
 	struct dma_iommu_mapping *mapping;
 	struct dma_iommu_mapping *mapping;
 
 
 	if (__qdf_mem_smmu_s1_enabled(osdev)) {
 	if (__qdf_mem_smmu_s1_enabled(osdev)) {
-		mapping = pld_smmu_get_mapping(osdev->dev);
+		mapping = osdev->iommu_mapping;
 		if (mapping)
 		if (mapping)
 			return iommu_iova_to_phys(mapping->domain, dma_addr);
 			return iommu_iova_to_phys(mapping->domain, dma_addr);
 	}
 	}

+ 2 - 0
qdf/linux/src/i_qdf_types.h

@@ -241,6 +241,7 @@ enum qdf_bus_type {
  * @bus_type: Bus type
  * @bus_type: Bus type
  * @bid: Bus ID
  * @bid: Bus ID
  * @smmu_s1_enabled: SMMU S1 enabled or not
  * @smmu_s1_enabled: SMMU S1 enabled or not
+ * @iommu_mapping: DMA iommu mapping pointer
  */
  */
 struct __qdf_device {
 struct __qdf_device {
 	void *drv;
 	void *drv;
@@ -256,6 +257,7 @@ struct __qdf_device {
 	const struct hif_bus_id *bid;
 	const struct hif_bus_id *bid;
 #endif
 #endif
 	bool smmu_s1_enabled;
 	bool smmu_s1_enabled;
+	struct dma_iommu_mapping *iommu_mapping;
 };
 };
 typedef struct __qdf_device *__qdf_device_t;
 typedef struct __qdf_device *__qdf_device_t;