Author: nbd Date: 2016-02-07 22:00:11 +0100 (Sun, 07 Feb 2016) New Revision: 48652
Modified: trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c Log: 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 <[email protected]> Modified: trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c =================================================================== --- trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c 2016-02-07 21:00:01 UTC (rev 48651) +++ trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr6500-v2.c 2016-02-07 21:00:11 UTC (rev 48652) @@ -100,13 +100,14 @@ 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); _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
