790-01-v6.2-net-dsa-mt7530-remove-redundant-assignment.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. From 27b692012840f658c84a3102c0aeca2676f03132 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Thu, 15 Dec 2022 03:47:59 +0000
  4. Subject: [PATCH 01/48] net: dsa: mt7530: remove redundant assignment
  5. Russell King correctly pointed out that the MAC_2500FD capability is
  6. already added for port 5 (if not in RGMII mode) and port 6 (which only
  7. supports SGMII) by mt7531_mac_port_get_caps. Remove the reduntant
  8. setting of this capability flag which was added by a previous commit.
  9. Fixes: e19de30d2080 ("net: dsa: mt7530: add support for in-band link status")
  10. Reported-by: Russell King (Oracle) <[email protected]>
  11. Reviewed-by: Russell King (Oracle) <[email protected]>
  12. Signed-off-by: Daniel Golle <[email protected]>
  13. Link: https://lore.kernel.org/r/[email protected]
  14. Signed-off-by: Jakub Kicinski <[email protected]>
  15. ---
  16. drivers/net/dsa/mt7530.c | 3 ---
  17. 1 file changed, 3 deletions(-)
  18. --- a/drivers/net/dsa/mt7530.c
  19. +++ b/drivers/net/dsa/mt7530.c
  20. @@ -3010,9 +3010,6 @@ static void mt753x_phylink_get_caps(stru
  21. config->mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
  22. MAC_10 | MAC_100 | MAC_1000FD;
  23. - if ((priv->id == ID_MT7531) && mt753x_is_mac_port(port))
  24. - config->mac_capabilities |= MAC_2500FD;
  25. -
  26. /* This driver does not make use of the speed, duplex, pause or the
  27. * advertisement in its mac_config, so it is safe to mark this driver
  28. * as non-legacy.