PCI: qcom: Fix host-init error handling
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 17 Oct 2022 11:47:04 +0000 (13:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:38 +0000 (09:33 +0100)
commitf139c15c6cc6a520b9e8fc7547b356f0cd1eb935
tree8e7a8f155a236365cfbf27642d605858e1276f63
parentfe5955b11f6e1e223d323d9ebb3b3dace0a9d668
PCI: qcom: Fix host-init error handling

[ Upstream commit 997e010de9134474dbfde52be03efd7d1bce902d ]

Implement the new host_deinit() callback so that the PHY is powered off
and regulators and clocks are disabled also on late host-init errors.

Link: https://lore.kernel.org/r/20221017114705.8277-2-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 <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pcie-qcom.c