PCI: qcom: Fix unbalanced PHY init on probe errors
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 1 Apr 2022 13:38:54 +0000 (15:38 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 24 May 2022 21:40:45 +0000 (16:40 -0500)
commit83013631f0f9961416abd812e228c8efbc2f6069
treec687fa2b58a85e004e6f79208a47ef7a80f0e93f
parent87d83b96c8d6c6c2d2096bd0bdba73bcf42b8ef0
PCI: qcom: Fix unbalanced PHY init on probe errors

Undo the PHY initialisation (e.g. balance runtime PM) if host
initialisation fails during probe.

Link: https://lore.kernel.org/r/20220401133854.10421-3-johan+linaro@kernel.org
Fixes: 82a823833f4e ("PCI: qcom: Add Qualcomm PCIe controller driver")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com>
Cc: stable@vger.kernel.org # 4.5
drivers/pci/controller/dwc/pcie-qcom.c