kernel: bump 4.9 to 4.9.63
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.9 / 425-net-mvneta-enable-flow-control-for-PHY-connections.patch
1 From: Russell King <rmk+kernel@arm.linux.org.uk>
2 Date: Thu, 1 Oct 2015 00:34:08 +0100
3 Subject: [PATCH] net: mvneta: enable flow control for PHY connections
4
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
9 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
10 Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
11 ---
12
13 --- a/drivers/net/ethernet/marvell/mvneta.c
14 +++ b/drivers/net/ethernet/marvell/mvneta.c
15 @@ -3153,10 +3153,11 @@ static void mvneta_validate_support(stru
16 phylink_set(mask, 10baseT_Full);
17 phylink_set(mask, 100baseT_Half);
18 phylink_set(mask, 100baseT_Full);
19 - } else {
20 - phylink_set(mask, Pause);
21 }
22
23 + if (mode != MLO_AN_FIXED)
24 + phylink_set(mask, Pause);
25 +
26 bitmap_and(support, support, mask, __ETHTOOL_LINK_MODE_MASK_NBITS);
27 }
28