From 8364c2ba88ab5f7027779190cd9d05b404a5dfeb Mon Sep 17 00:00:00 2001 From: Vevek Venkatesan Date: Wed, 10 Mar 2021 21:49:54 +0530 Subject: [PATCH] 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 --- core/pld/src/pld_common.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/pld/src/pld_common.c b/core/pld/src/pld_common.c index c523fe2dfc2c..7e5c5b486aae 100644 --- a/core/pld/src/pld_common.c +++ b/core/pld/src/pld_common.c @@ -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;