0058-ar71xx-C58-C59-fix-LAN1-working-incorrectly.patch 1.0 KB

12345678910111213141516171819202122
  1. From: David Bauer <mail@david-bauer.net>
  2. Date: Mon, 27 Nov 2017 04:19:38 +0100
  3. Subject: ar71xx: C58/C59 fix LAN1 working incorrectly
  4. This commit fixes LAN Port 1 not transferring data in case no
  5. other LAN Port has active link-state on TP-Link Archer C58/C59.
  6. Signed-off-by: David Bauer <mail@david-bauer.net>
  7. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
  8. index f385d4a5a3148b83ee01007145e0eda2c0ef670f..129aa53f304dd1a118ace9a2749855cb36f66cfc 100644
  9. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
  10. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c59-v1.c
  11. @@ -249,7 +249,7 @@ static void __init archer_c5x_v1_setup(void)
  12. ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII;
  13. ath79_eth1_data.speed = SPEED_1000;
  14. ath79_eth1_data.duplex = DUPLEX_FULL;
  15. - ath79_switch_data.phy_poll_mask |= BIT(4);
  16. + ath79_switch_data.phy_poll_mask |= BIT(0);
  17. ath79_switch_data.phy4_mii_en = 1;
  18. ath79_register_eth(1);