linux/drivers/pci/controller/dwc
Thierry Reding ddd6960087 PCI: exynos: Propagate errors for optional PHYs
devm_of_phy_get() can fail for a number of reasons besides probe
deferral. It can for example return -ENOMEM if it runs out of memory as
it tries to allocate devres structures. Propagating only -EPROBE_DEFER
is problematic because it results in these legitimately fatal errors
being treated as "PHY not specified in DT".

What we really want is to ignore the optional PHYs only if they have not
been specified in DT. devm_of_phy_get() returns -ENODEV in this case, so
that's the special case that we need to handle. So we propagate all
errors, except -ENODEV, so that real failures will still cause the
driver to fail probe.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
2019-09-04 15:39:41 +01:00
..
Kconfig PCI: imx6: Simplify Kconfig depends on 2019-07-05 16:44:41 +01:00
Makefile PCI: al: Add Amazon Annapurna Labs PCIe host controller driver 2019-04-25 16:33:07 -05:00
pci-dra7xx.c PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB 2019-07-09 17:25:13 +01:00
pci-exynos.c PCI: exynos: Propagate errors for optional PHYs 2019-09-04 15:39:41 +01:00
pci-imx6.c Merge branch 'remotes/lorenzo/pci/imx' 2019-05-13 18:34:39 -05:00
pci-keystone.c PCI: keystone: Add support for PCIe EP in AM654x Platforms 2019-05-01 15:50:13 +01:00
pci-layerscape-ep.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pci-layerscape.c PCI: dwc: layerscape: Fix a leaked reference by adding missing of_node_put() 2019-04-01 10:39:17 +01:00
pci-meson.c PCI: amlogic: Fix build failure due to missing gpio header 2019-01-08 09:01:44 -06:00
pcie-al.c PCI: al: Add Amazon Annapurna Labs PCIe host controller driver 2019-04-25 16:33:07 -05:00
pcie-armada8k.c Merge branch 'pci/trivial' 2019-07-12 17:08:41 -05:00
pcie-artpec6.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pcie-designware-ep.c PCI: designware-ep: Use aligned ATU window for raising MSI interrupts 2019-05-01 15:50:13 +01:00
pcie-designware-host.c PCI: dwc: Export APIs to support .remove() implementation 2019-06-27 12:02:46 +01:00
pcie-designware-plat.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pcie-designware.c PCI: dwc: Export APIs to support .remove() implementation 2019-06-27 12:02:46 +01:00
pcie-designware.h PCI: dwc: Cleanup DBI,ATU read and write APIs 2019-06-27 12:02:46 +01:00
pcie-hisi.c
pcie-histb.c PCI: histb: Constify dw_pcie_host_ops structure 2018-11-08 13:54:44 +00:00
pcie-kirin.c PCI: Fix typos and whitespace errors 2019-07-09 07:24:53 -05:00
pcie-qcom.c PCI: qcom: Ensure that PERST is asserted for at least 100 ms 2019-05-30 16:51:12 +01:00
pcie-spear13xx.c PCI: spear13xx: Drop unnecessary root_bus_nr setting 2018-07-13 14:10:55 +01:00
pcie-uniphier.c PCI: uniphier: Fix a leaked reference by adding missing of_node_put() 2019-03-29 16:57:50 +00:00