Star64_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-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
pci-keystone.c
pci-layerscape-ep.c
pci-layerscape.c
pci-meson.c
pcie-al.c
pcie-armada8k.c Merge branch 'pci/trivial' 2019-07-12 17:08:41 -05:00
pcie-artpec6.c
pcie-designware-ep.c
pcie-designware-host.c PCI: dwc: Export APIs to support .remove() implementation 2019-06-27 12:02:46 +01:00
pcie-designware-plat.c
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
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
pcie-uniphier.c