425-net-mvneta-enable-flow-control-for-PHY-connections.patch 870 B

12345678910111213141516171819202122232425262728
  1. From: Russell King <[email protected]>
  2. Date: Thu, 1 Oct 2015 00:34:08 +0100
  3. Subject: [PATCH] net: mvneta: enable flow control for PHY connections
  4. Enable flow control support for PHY connections by indicating our
  5. support via the ethtool capabilities. phylink takes care of the
  6. appropriate handling.
  7. Reviewed-by: Florian Fainelli <[email protected]>
  8. Signed-off-by: Russell King <[email protected]>
  9. ---
  10. --- a/drivers/net/ethernet/marvell/mvneta.c
  11. +++ b/drivers/net/ethernet/marvell/mvneta.c
  12. @@ -3154,10 +3154,11 @@ static void mvneta_validate_support(stru
  13. phylink_set(mask, 10baseT_Full);
  14. phylink_set(mask, 100baseT_Half);
  15. phylink_set(mask, 100baseT_Full);
  16. - } else {
  17. - phylink_set(mask, Pause);
  18. }
  19. + if (mode != MLO_AN_FIXED)
  20. + phylink_set(mask, Pause);
  21. +
  22. bitmap_and(support, support, mask, __ETHTOOL_LINK_MODE_MASK_NBITS);
  23. }