diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-10-01 00:34:08 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-05-05 18:42:38 +0100 |
commit | 0f918a4508a7bf2ca78bdfc3c42820a96d406063 (patch) | |
tree | 9245e0df0febb673d76cee0f1cad18c8ea69972d | |
parent | 92e38b2e86bf31d14829c5a7722635ab42b9bb4d (diff) |
net: mvneta: enable flow control for PHY connections
Enable flow control support for PHY connections by indicating our
support via the ethtool capabilities. phylink takes care of the
appropriate handling.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index d404cd0a4995..58e055d0bd21 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -3211,10 +3211,11 @@ static void mvneta_validate_support(struct net_device *ndev, unsigned int mode, phylink_set(mask, 10baseT_Full); phylink_set(mask, 100baseT_Half); phylink_set(mask, 100baseT_Full); - } else { - phylink_set(mask, Pause); } + if (mode != MLO_AN_FIXED) + phylink_set(mask, Pause); + bitmap_and(support, support, mask, __ETHTOOL_LINK_MODE_MASK_NBITS); } |