openwrt/target/linux/generic/files/drivers
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
..
leds linux/ledtrig-netdev: remove unsigned < 0 check 2017-06-11 14:22:44 +02:00
misc kernel: owl-loader: fix compile warning 2017-10-01 16:40:37 +02:00
mtd kernel: add missing version.h include to the TP-LINK parser 2018-11-24 11:48:47 +01:00
net/phy generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00