openwrtv3/target/linux/generic/files/drivers/net/phy
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
..
b53 kernel: b53: register switch on probe 2018-11-23 21:45:51 +00:00
adm6996.c
adm6996.h
ar8216.c ar8216: reduce latency by inserting scheduling points into code hogging the CPU 2018-04-08 09:14:23 +02:00
ar8216.h
ar8327.c generic: revert workarounds for AR8337 switch 2018-08-23 22:40:59 +02:00
ar8327.h generic: revert workarounds for AR8337 switch 2018-08-23 22:40:59 +02:00
ip17xx.c
mvsw61xx.c
mvsw61xx.h
mvswitch.c
mvswitch.h
psb6970.c
rtl8306.c
rtl8366_smi.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8366_smi.h kernel: rtl8366-smi: add Realtek switch management via mii-bus 2018-06-25 20:52:18 +02:00
rtl8366rb.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8366s.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8367.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8367b.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
swconfig.c
swconfig_leds.c