openwrt/target/linux
Koen Vandeputte 42f158314e ar71xx: fix switch probing on kernel 4.14
The bump to 4.14 changed the way mdio probes behind switches.

While the board_info is added to the list, the code that actually inserted
the list info into the phydev structure was missing.

This resulted in non-working ethernet ports.

Re-add it to fix switch probing.
This mimics the exact behaviour as it was in kernel 4.9.

Before:

[    1.066007] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.073409] Atheros AR8216/AR8236/AR8316: probe of ag71xx-mdio.0:00 failed with error -22
[    1.102455] libphy: ag71xx_mdio: probed
[    1.737938] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Generic PHY]
[    1.747994] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    2.377642] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.429938] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII

After:

[   11.163357] libphy: Fixed MDIO Bus: probed
[   11.319898] libphy: ag71xx_mdio: probed
[   11.360844] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[   12.447398] libphy: ag71xx_mdio: probed
[   13.077402] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[   13.088989] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[   13.717716] ag71xx-mdio.1: Found an AR934X built-in switch
[   13.769990] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2018-09-07 17:21:24 +02:00
..
adm5120 kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
adm8668 kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
apm821xx apm821xx: MBL: load kernel/dtb from SATA 0:1 first 2018-08-29 09:43:10 +02:00
ar7 ar7: remove linux 3.18 support 2018-08-13 17:10:39 +02:00
ar71xx ar71xx: fix switch probing on kernel 4.14 2018-09-07 17:21:24 +02:00
arc770 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
archs38 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
armvirt kernel: add missing ARM64_SSBD symbol 2018-07-31 12:22:11 +03:00
at91 treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
ath25 ath25: drop 4.9 kernel support 2018-05-22 07:20:13 +02:00
ath79 ath79: fix unaligned access panic in ag71xx_mdio_probe 2018-09-06 21:35:53 +02:00
au1000 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
bcm53xx kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
brcm47xx kernel: bump 4.14 to 4.14.68 2018-09-07 17:21:24 +02:00
brcm63xx treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
brcm2708 kernel: bump 4.9 to 4.9.117 2018-08-03 16:10:38 +02:00
cns3xxx kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
gemini kernel: remove DEVMEM and DEVKMEM from target's config 2018-07-07 18:19:39 +02:00
generic kernel: bump 4.14 to 4.14.68 2018-09-07 17:21:24 +02:00
imx6 imx6: use BUILD_DEVICES in uboot-imx6 for mx6cuboxi 2018-09-05 10:00:01 +02:00
ipq40xx build: add mkrasimage 2018-08-28 11:26:53 +02:00
ipq806x kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
ixp4xx kernel: bump 4.9 to 4.9.123 2018-08-22 13:47:13 +02:00
kirkwood kernel: bump 4.9 to 4.9.116 2018-08-01 09:46:59 +02:00
lantiq kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
layerscape kernel: bump 4.9 to 4.9.125 2018-09-07 17:21:24 +02:00
malta malta: bump tp v4.14 2018-01-09 10:26:16 +01:00
mcs814x kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
mediatek mediatek: remove duplicate RPS patch 2018-08-28 14:57:15 +02:00
mpc85xx mpc85xx: add migration script for TP-Link TL-WDR4900 v1 WLAN PCI paths 2018-09-04 21:27:27 +02:00
mvebu treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
mxs kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
octeon octeon: Add and set CPU type Octeon+ as default 2018-06-20 15:36:02 +02:00
octeontx kernel: add missing ARM64_SSBD symbol 2018-07-31 12:22:11 +03:00
omap omap: disable ubifs 2018-07-30 11:03:02 +02:00
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 2018-01-15 13:13:34 +01:00
orion orion: remove linux 4.4 support 2018-04-19 14:38:57 +02:00
oxnas treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
pistachio treewide: consolidate upgrade state set 2018-08-16 21:20:57 +02:00
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips ramips: add support for TP-Link TL-MR3020 v3 2018-09-06 21:36:42 +02:00
rb532 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
samsung treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
sunxi kernel: bump 4.9 to 4.9.124 2018-08-28 23:05:39 +02:00
uml kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
x86 x86: geode: Add missing config options 2018-08-26 12:32:26 +02:00
xburst kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
zynq zynq: add support for the Zybo Z7 board 2018-08-25 15:33:51 +02:00
Makefile