openwrtv4/target/linux/generic/files
Christian Lamparter 910c2f9e68 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>
2018-11-26 12:05:46 +01:00
..
arch/mips/fw/myloader rename target/linux/generic-2.6 to generic 2010-06-26 20:42:58 +00:00
Documentation/networking kernel: drop dead pwm code 2013-08-18 01:25:41 +00:00
drivers generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
include kernel: add reset control support to rtl8366 driver 2018-05-24 15:43:39 +02:00