openwrtv3/target/linux/generic
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
..
backport-4.9 kernel: bump 4.9 to 4.9.137 2018-11-14 16:27:43 +01:00
backport-4.14 kernel: bump 4.14 to 4.14.82 2018-11-22 10:49:01 +01:00
files generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
hack-4.9 kernel: bump 4.9 to 4.9.134 2018-10-19 10:01:57 +02:00
hack-4.14 kernel: bump 4.14 to 4.14.81 2018-11-14 16:27:43 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-3.18 kernel: bump 3.18 to 3.18.126 2018-11-22 12:40:19 +01:00
pending-4.9 kernel: drop unused arch_split_mtd_part() 2018-11-24 12:24:02 +01:00
pending-4.14 kernel: drop unused arch_split_mtd_part() 2018-11-24 12:24:02 +01:00
config-3.18 kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
config-4.9 kernel: enable CONFIG_BRIDGE_VLAN_FILTERING 2018-11-25 15:24:49 +01:00
config-4.14 kernel: enable CONFIG_BRIDGE_VLAN_FILTERING 2018-11-25 15:24:49 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00