0042-ar71xx-Fix-eth0-support-for-Ubiquiti-UniFi-AP-AC.patch 886 B

123456789101112131415161718192021
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 13 May 2016 21:02:55 +0200
  3. Subject: ar71xx: Fix eth0 support for Ubiquiti UniFi AP AC
  4. Fix eth0 support for the Ubiquiti UniFi AP AC
  5. Signed-off-by: Paul Wassi <p.wassi at gmx.at>
  6. Backport of OpenWrt r49277
  7. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
  8. index 3617ca7..072cf12 100644
  9. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
  10. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ubnt-unifiac.c
  11. @@ -84,6 +84,7 @@ static void __init ubnt_unifiac_setup(void)
  12. eeprom + UNIFIAC_MAC0_OFFSET, 0);
  13. ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
  14. + ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
  15. ath79_eth0_data.phy_mask = BIT(4);
  16. ath79_eth0_pll_data.pll_10 = 0x00001313;