Prechádzať zdrojové kódy

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
Vevek Venkatesan 4 rokov pred
rodič
commit
a2f248c0ce
1 zmenil súbory, kde vykonal 5 pridanie a 2 odobranie
  1. 5 2
      core/pld/src/pld_common.c

+ 5 - 2
core/pld/src/pld_common.c

@@ -2013,11 +2013,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;