We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720e0d9 commit 997e010Copy full SHA for 997e010
drivers/pci/controller/dwc/pcie-qcom.c
@@ -1534,8 +1534,19 @@ static int qcom_pcie_host_init(struct dw_pcie_rp *pp)
1534
return ret;
1535
}
1536
1537
+static void qcom_pcie_host_deinit(struct dw_pcie_rp *pp)
1538
+{
1539
+ struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
1540
+ struct qcom_pcie *pcie = to_qcom_pcie(pci);
1541
+
1542
+ qcom_ep_reset_assert(pcie);
1543
+ phy_power_off(pcie->phy);
1544
+ pcie->cfg->ops->deinit(pcie);
1545
+}
1546
1547
static const struct dw_pcie_host_ops qcom_pcie_dw_ops = {
- .host_init = qcom_pcie_host_init,
1548
+ .host_init = qcom_pcie_host_init,
1549
+ .host_deinit = qcom_pcie_host_deinit,
1550
};
1551
1552
/* Qcom IP rev.: 2.1.0 Synopsys IP rev.: 4.01a */
0 commit comments