linux/drivers/pci/controller/dwc
Bjorn Andersson 6e5da6f7d8 PCI: qcom: Fix error handling in runtime PM support
The driver does not cope with the fact that probe can fail in a number
of cases after enabling runtime PM on the device; this results in
warnings about "Unbalanced pm_runtime_enable". Furthermore if probe
fails after invoking qcom_pcie_host_init() the power-domain will be left
referenced.

As it is not possible for the error handling in qcom_pcie_host_init() to
handle errors happening after returning from that function the
pm_runtime_get_sync() is moved to qcom_pcie_probe() as well.

Fixes: 854b69efbd ("PCI: qcom: add runtime pm support to pcie_port")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com>
2018-09-18 10:13:14 +01:00
..
Kconfig
Makefile
pci-dra7xx.c PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures 2018-07-19 11:34:42 +01:00
pci-exynos.c PCI: exynos: Drop unnecessary root_bus_nr setting 2018-07-13 14:07:47 +01:00
pci-imx6.c PCI: imx: Initial imx7d pm support 2018-09-18 10:13:14 +01:00
pci-keystone-dw.c
pci-keystone.c PCI: keystone: Drop unnecessary root_bus_nr setting 2018-07-13 14:08:18 +01:00
pci-keystone.h
pci-layerscape.c
pcie-armada8k.c PCI: armada8k: Drop unnecessary root_bus_nr setting 2018-07-13 14:08:28 +01:00
pcie-artpec6.c PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures 2018-07-19 11:34:42 +01:00
pcie-designware-ep.c PCI: dwc: Add legacy interrupt callback handler 2018-07-19 11:38:38 +01:00
pcie-designware-host.c PCI: designware: Fix I/O space page leak 2018-07-18 17:00:29 -05:00
pcie-designware-plat.c pci-epf-test/pci_endpoint_test: Add MSI-X support 2018-07-19 11:46:45 +01:00
pcie-designware.c
pcie-designware.h PCI: dwc: Add legacy interrupt callback handler 2018-07-19 11:38:38 +01:00
pcie-hisi.c
pcie-histb.c PCI: histb: Drop unnecessary root_bus_nr setting 2018-07-13 14:09:47 +01:00
pcie-kirin.c PCI: kirin: Add MSI support 2018-07-11 12:20:41 +01:00
pcie-qcom.c PCI: qcom: Fix error handling in runtime PM support 2018-09-18 10:13:14 +01:00
pcie-spear13xx.c PCI: spear13xx: Drop unnecessary root_bus_nr setting 2018-07-13 14:10:55 +01:00