1 From: Russell King <rmk+kernel@armlinux.org.uk>
2 Date: Tue, 12 Jul 2016 00:04:13 +0100
3 Subject: [PATCH] net: mvneta: enable flow control for fixed connections
5 Allow symetric flow control to be enabled for fixed link connections as
6 well as other types of connections by setting the supported and
7 advertised capability bits.
9 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
12 --- a/drivers/net/ethernet/marvell/mvneta.c
13 +++ b/drivers/net/ethernet/marvell/mvneta.c
14 @@ -3144,6 +3144,8 @@ static void mvneta_validate_support(stru
15 phylink_set(mask, BNC);
16 phylink_set(mask, Backplane);
18 + /* Asymmetric pause is unsupported */
19 + phylink_set(mask, Pause);
20 /* Half-duplex at speeds higher than 100Mbit is unsupported */
21 phylink_set(mask, 1000baseT_Full);
22 phylink_set(mask, 1000baseX_Full);
23 @@ -3156,9 +3158,6 @@ static void mvneta_validate_support(stru
24 phylink_set(mask, 100baseT_Full);
27 - if (mode != MLO_AN_FIXED)
28 - phylink_set(mask, Pause);
30 bitmap_and(support, support, mask, __ETHTOOL_LINK_MODE_MASK_NBITS);