PCI: qcom: Fix host-init error handling
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 17 Oct 2022 11:47:04 +0000 (13:47 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 14 Feb 2023 17:41:03 +0000 (11:41 -0600)
commit997e010de9134474dbfde52be03efd7d1bce902d
treeedcd0a3f8899b62c98f20a3d46e5c9ea13e958d1
parent720e0d91c9772b60a87eb361da02deb3c0c628e4
PCI: qcom: Fix host-init error handling

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>
drivers/pci/controller/dwc/pcie-qcom.c