2
0

790-22-v6.8-net-dsa-mt7530-fix-10M-100M-speed-on-MT7988-switch.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 022a254fafce88367914dfc8168fe687fc528cdb Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Wed, 24 Jan 2024 05:17:25 +0000
  4. Subject: [PATCH 22/48] net: dsa: mt7530: fix 10M/100M speed on MT7988 switch
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Setup PMCR port register for actual speed and duplex on internally
  9. connected PHYs of the MT7988 built-in switch. This fixes links with
  10. speeds other than 1000M.
  11. Fixes: 110c18bfed41 ("net: dsa: mt7530: introduce driver for MT7988 built-in switch")
  12. Signed-off-by: Daniel Golle <[email protected]>
  13. Reviewed-by: Vladimir Oltean <[email protected]>
  14. Acked-by: Arınç ÜNAL <[email protected]>
  15. Link: https://lore.kernel.org/r/a5b04dfa8256d8302f402545a51ac4c626fdba25.1706071272.git.daniel@makrotopia.org
  16. Signed-off-by: Jakub Kicinski <[email protected]>
  17. ---
  18. drivers/net/dsa/mt7530.c | 3 +--
  19. 1 file changed, 1 insertion(+), 2 deletions(-)
  20. --- a/drivers/net/dsa/mt7530.c
  21. +++ b/drivers/net/dsa/mt7530.c
  22. @@ -2883,8 +2883,7 @@ static void mt753x_phylink_mac_link_up(s
  23. /* MT753x MAC works in 1G full duplex mode for all up-clocked
  24. * variants.
  25. */
  26. - if (interface == PHY_INTERFACE_MODE_INTERNAL ||
  27. - interface == PHY_INTERFACE_MODE_TRGMII ||
  28. + if (interface == PHY_INTERFACE_MODE_TRGMII ||
  29. (phy_interface_mode_is_8023z(interface))) {
  30. speed = SPEED_1000;
  31. duplex = DUPLEX_FULL;