diff options
author | Thierry Reding <treding@nvidia.com> | 2019-08-29 12:53:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-07 18:59:33 +0200 |
commit | 0728352751bbefc04a68150d82f84fe145eac2ce (patch) | |
tree | db58a3463f96ce509647430c62704f3f0ac9c4a9 /arch/c6x/boot | |
parent | 6eb7a0a0eb86194adf3e2198580cc776dac4867f (diff) | |
download | linux-stable-0728352751bbefc04a68150d82f84fe145eac2ce.tar.gz linux-stable-0728352751bbefc04a68150d82f84fe145eac2ce.tar.bz2 linux-stable-0728352751bbefc04a68150d82f84fe145eac2ce.zip |
PCI: exynos: Propagate errors for optional PHYs
[ Upstream commit ddd6960087d4b45759434146d681a94bbb1c54ad ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/c6x/boot')
0 files changed, 0 insertions, 0 deletions