diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2018-10-17 22:37:36 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-11-26 12:05:46 +0100 |
commit | 910c2f9e68554ed36f622d005c76f39780b367ab (patch) | |
tree | 33b29da65a5702ce8d4faf4714a076764456f677 /scripts/relink-lib.sh | |
parent | fb4bed5fe93961d769317014133a4d0006e5a6ea (diff) | |
download | upstream-910c2f9e68554ed36f622d005c76f39780b367ab.tar.gz upstream-910c2f9e68554ed36f622d005c76f39780b367ab.tar.bz2 upstream-910c2f9e68554ed36f622d005c76f39780b367ab.zip |
generic: rtl836x: support defered probe on mdio-bus
On the WNDAP620, the mdio and mdc lines are controlled by
the EMAC ethernet device. This results in a hen-vs-egg problem.
The rtl8367b driver is probed before the ethernet driver and
the mdio-bus is not available yet, which caused the rtl8367b
driver to fail.
This patch changes the rtl8366_smi_probe_of() function to
return -EPROBE_DEFER if the mdio-bus lookup failed and changes
rtl8366_smi_probe()'s signature to return the error code back to
the callee, so it can propagate back to the kernel. Which, will
retry the switch probe at a later time.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'scripts/relink-lib.sh')
0 files changed, 0 insertions, 0 deletions