mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacld-3.0: Add api to get smmu domain
Add api to get smmu domain from cnss2 platform driver. Change-Id: I1e0370616bda32b013104db7c086e9611a699f43
This commit is contained in:
parent
8de8fcb2cf
commit
b2df1387eb
2 changed files with 21 additions and 0 deletions
|
|
@ -1414,6 +1414,13 @@ void *pld_smmu_get_domain(struct device *dev)
|
|||
case PLD_BUS_TYPE_SNOC:
|
||||
ptr = pld_snoc_smmu_get_domain(dev);
|
||||
break;
|
||||
case PLD_BUS_TYPE_PCIE:
|
||||
ptr = pld_pcie_smmu_get_domain(dev);
|
||||
break;
|
||||
case PLD_BUS_TYPE_SDIO:
|
||||
case PLD_BUS_TYPE_USB:
|
||||
pr_err("Not supported on type %d\n", type);
|
||||
break;
|
||||
default:
|
||||
pr_err("Invalid device type %d\n", type);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -133,10 +133,17 @@ static inline int pld_pcie_wlan_pm_control(struct device *dev, bool vote)
|
|||
#endif
|
||||
|
||||
#ifndef CONFIG_PLD_PCIE_CNSS
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
|
||||
static inline void *pld_pcie_smmu_get_domain(struct device *dev)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#else
|
||||
static inline void *pld_pcie_smmu_get_mapping(struct device *dev)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline int
|
||||
pld_pcie_smmu_map(struct device *dev,
|
||||
|
|
@ -350,10 +357,17 @@ static inline int pld_pcie_collect_rddm(struct device *dev)
|
|||
return cnss_force_collect_rddm(dev);
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
|
||||
static inline void *pld_pcie_smmu_get_domain(struct device *dev)
|
||||
{
|
||||
return cnss_smmu_get_domain(dev);
|
||||
}
|
||||
#else
|
||||
static inline void *pld_pcie_smmu_get_mapping(struct device *dev)
|
||||
{
|
||||
return cnss_smmu_get_mapping(dev);
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline int
|
||||
pld_pcie_smmu_map(struct device *dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue