tools: mkimage: provide dtc path during build
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.9 / 426-net-mvneta-enable-flow-control-for-fixed-connections.patch
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
4
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.
8
9 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
10 ---
11
12 --- a/drivers/net/ethernet/marvell/mvneta.c
13 +++ b/drivers/net/ethernet/marvell/mvneta.c
14 @@ -3143,6 +3143,8 @@ static void mvneta_validate_support(stru
15 phylink_set(mask, BNC);
16 phylink_set(mask, Backplane);
17
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 @@ -3155,9 +3157,6 @@ static void mvneta_validate_support(stru
24 phylink_set(mask, 100baseT_Full);
25 }
26
27 - if (mode != MLO_AN_FIXED)
28 - phylink_set(mask, Pause);
29 -
30 bitmap_and(support, support, mask, __ETHTOOL_LINK_MODE_MASK_NBITS);
31 }
32