Skip to content

Commit 1362af9

Browse files
Qiang Yukwilczynski
authored andcommitted
PCI: qcom: Remove BDF2SID mapping config for SC8280X family SoC
The SC8280XP PCIe devicetree nodes do not specify an 'iommu-map' so the config_sid() callback is effectively a no-op. Hence introduce a new ops struct, namely ops_1_21_0 which is same as ops_1_9_0 except that it doesn't have config_sid() callback to clean it up. Link: https://lore.kernel.org/r/20241101030902.579789-4-quic_qianyu@quicinc.com Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
1 parent 66dc205 commit 1362af9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/pci/controller/dwc/pcie-qcom.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,16 @@ static const struct qcom_pcie_ops ops_1_9_0 = {
13651365
.config_sid = qcom_pcie_config_sid_1_9_0,
13661366
};
13671367

1368+
/* Qcom IP rev.: 1.21.0 Synopsys IP rev.: 5.60a */
1369+
static const struct qcom_pcie_ops ops_1_21_0 = {
1370+
.get_resources = qcom_pcie_get_resources_2_7_0,
1371+
.init = qcom_pcie_init_2_7_0,
1372+
.post_init = qcom_pcie_post_init_2_7_0,
1373+
.host_post_init = qcom_pcie_host_post_init_2_7_0,
1374+
.deinit = qcom_pcie_deinit_2_7_0,
1375+
.ltssm_enable = qcom_pcie_2_3_2_ltssm_enable,
1376+
};
1377+
13681378
/* Qcom IP rev.: 2.9.0 Synopsys IP rev.: 5.00a */
13691379
static const struct qcom_pcie_ops ops_2_9_0 = {
13701380
.get_resources = qcom_pcie_get_resources_2_9_0,
@@ -1412,7 +1422,7 @@ static const struct qcom_pcie_cfg cfg_2_9_0 = {
14121422
};
14131423

14141424
static const struct qcom_pcie_cfg cfg_sc8280xp = {
1415-
.ops = &ops_1_9_0,
1425+
.ops = &ops_1_21_0,
14161426
.no_l0s = true,
14171427
};
14181428

0 commit comments

Comments
 (0)