aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-layerscape.c
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2018-08-31 15:55:10 -0700
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-09-18 10:13:14 +0100
commit6e5da6f7d82474e94c2d4a38cf9ca4edbb3e03a0 (patch)
tree3839092f405814849f33da32c7037e69d15bba5f /drivers/pci/controller/dwc/pci-layerscape.c
parent0ee2c1f2429f74328c82ea559b127c96d5224ccd (diff)
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: 854b69efbdd2 ("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>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions