diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-02-07 21:00:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-07 21:00:11 +0000 |
commit | 3b55dd132f0da31910203fa71fb6eab9cb7fb379 (patch) | |
tree | 04b0d40ef520f57e8d1a68cba7b5e89983cf645b /target/linux/ar71xx | |
parent | 665edda2da1d4c47c11c9b9019f46574b16f6e4a (diff) | |
download | master-187ad058-3b55dd132f0da31910203fa71fb6eab9cb7fb379.tar.gz master-187ad058-3b55dd132f0da31910203fa71fb6eab9cb7fb379.tar.bz2 master-187ad058-3b55dd132f0da31910203fa71fb6eab9cb7fb379.zip |
ar71xx: register only the built-in switch MDIO bus, hook up eth0 to it, should hopefully fix regression reported in #21520
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48652 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c index c2e75c278a..1e72477646 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c @@ -100,13 +100,14 @@ static void __init tl_ap151_setup(void) ath79_setup_ar933x_phy4_switch(false, false); - ath79_register_mdio(0, 0x0); + ath79_register_mdio(1, 0x0); /* WAN */ ath79_switch_data.phy4_mii_en = 1; ath79_switch_data.phy_poll_mask = BIT(4); ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; ath79_eth0_data.phy_mask = BIT(4); + ath79_eth0_data.mii_bus_dev = &ath79_mdio1_device.dev; ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1); ath79_register_eth(0); |