140-net-mvneta-enable-flow-control-for-PHY-connections.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From 62f8a12044265df11531750a240e516a5f1ff433 Mon Sep 17 00:00:00 2001
  2. From: Russell King <rmk+kernel@arm.linux.org.uk>
  3. Date: Thu, 1 Oct 2015 00:34:08 +0100
  4. Subject: [PATCH 728/744] net: mvneta: enable flow control for PHY connections
  5. Enable flow control support for PHY connections by indicating our
  6. support via the ethtool capabilities. phylink takes care of the
  7. appropriate handling.
  8. Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
  9. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  10. ---
  11. drivers/net/ethernet/marvell/mvneta.c | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. --- a/drivers/net/ethernet/marvell/mvneta.c
  14. +++ b/drivers/net/ethernet/marvell/mvneta.c
  15. @@ -3127,12 +3127,14 @@ static int mvneta_mac_support(struct net
  16. state->supported = PHY_10BT_FEATURES |
  17. PHY_100BT_FEATURES |
  18. SUPPORTED_1000baseT_Full |
  19. + SUPPORTED_Pause |
  20. SUPPORTED_Autoneg;
  21. state->advertising = ADVERTISED_10baseT_Half |
  22. ADVERTISED_10baseT_Full |
  23. ADVERTISED_100baseT_Half |
  24. ADVERTISED_100baseT_Full |
  25. ADVERTISED_1000baseT_Full |
  26. + ADVERTISED_Pause |
  27. ADVERTISED_Autoneg;
  28. state->an_enabled = 1;
  29. break;