qcacld-3.0: change pld_ipci_smmu_unmap support only for IPCI type

Currently pld_ipci_smmu_unmap suppot has been added for IPCI,
PCIE_FW_SIM and SNOC_FW_SIM type cases as an error, moving this
unmap support only for type IPCI.

Change-Id: Ib9a60656920d1cc46e28dc269983b7da8dba7d42
CRs-Fixed: 2896804
This commit is contained in:
Vevek Venkatesan 2021-03-10 21:49:54 +05:30 • committed by snandini
commit 8364c2ba88

View file

@ -2014,11 +2014,14 @@ int pld_smmu_unmap(struct device *dev,
case PLD_BUS_TYPE_PCIE:
ret = pld_pcie_smmu_unmap(dev, iova_addr, size);
break;
case PLD_BUS_TYPE_PCIE_FW_SIM:
case PLD_BUS_TYPE_SNOC_FW_SIM:
case PLD_BUS_TYPE_IPCI:
ret = pld_ipci_smmu_unmap(dev, iova_addr, size);
break;
case PLD_BUS_TYPE_PCIE_FW_SIM:
case PLD_BUS_TYPE_IPCI_FW_SIM:
case PLD_BUS_TYPE_SNOC_FW_SIM:
pr_err("Not supported on type %d\n", type);
break;
default:
pr_err("Invalid device type %d\n", type);
ret = -EINVAL;