Messages in this thread Patch in this message | | | From | Dmitry Baryshkov <> | Subject | [PATCH] PCI: qcom-ep: use qcom_pcie_disable_resources() in qcom_pcie_ep_remove() | Date | Mon, 2 May 2022 13:42:50 +0300 |
| |
Remove code duplication between qcom_pcie_disable_resources() and qcom_pcie_ep_remove().
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> ---
Could you please squash the following patch and repost it?
--- drivers/pci/controller/dwc/pcie-qcom-ep.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c index 80a9acf683ba..11f40a6467ba 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -689,10 +689,7 @@ static int qcom_pcie_ep_remove(struct platform_device *pdev) if (pcie_ep->link_status == QCOM_PCIE_EP_LINK_DISABLED) return 0; - phy_power_off(pcie_ep->phy); - phy_exit(pcie_ep->phy); - clk_bulk_disable_unprepare(ARRAY_SIZE(qcom_pcie_ep_clks), - qcom_pcie_ep_clks); + qcom_pcie_disable_resources(pcie_ep); return 0; } -- 2.35.1
| |