PCI: dwc: designware: Handle ->host_init() failures
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 16 Jul 2017 06:39:45 +0000 (23:39 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 3 Aug 2017 21:14:32 +0000 (16:14 -0500)
commit4a301766f5263dd94c1b95d1b1bbdf338afb1a37
tree9013a6e5a8441611534df7db0c4ecb5fbb80b880
parente9be4d78618af2e0d5592d9556cf0bba210cfd1a
PCI: dwc: designware: Handle ->host_init() failures

In several dwc-based drivers, ->host_init() can fail, so make sure to
propagate and handle this to avoid continuing operation of a driver or
hardware in an invalid state.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Joao Pinto <jpinto@synopsys.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
13 files changed:
drivers/pci/dwc/pci-dra7xx.c
drivers/pci/dwc/pci-exynos.c
drivers/pci/dwc/pci-imx6.c
drivers/pci/dwc/pci-keystone.c
drivers/pci/dwc/pci-layerscape.c
drivers/pci/dwc/pcie-armada8k.c
drivers/pci/dwc/pcie-artpec6.c
drivers/pci/dwc/pcie-designware-host.c
drivers/pci/dwc/pcie-designware-plat.c
drivers/pci/dwc/pcie-designware.h
drivers/pci/dwc/pcie-kirin.c
drivers/pci/dwc/pcie-qcom.c
drivers/pci/dwc/pcie-spear13xx.c