kernel: update kernel 4.9 to 4.9.37
[openwrt/staging/wigyori.git] / target / linux / mvebu / patches-4.9 / 433-phy-marvell-88E1111-add-flow-control-support.patch
1 From: Russell King <rmk+kernel@armlinux.org.uk>
2 Date: Tue, 12 Jul 2016 16:45:43 +0100
3 Subject: [PATCH] phy: marvell: 88E1111: add flow control support
4
5 The Marvell PHYs support pause frame advertisments, so we should not be
6 masking their support off. Add the necessary flag to the Marvell PHY
7 to allow any MAC level pause frame support to be advertised.
8
9 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
10 ---
11
12 --- a/drivers/net/phy/marvell.c
13 +++ b/drivers/net/phy/marvell.c
14 @@ -1530,7 +1530,7 @@ static struct phy_driver marvell_drivers
15 .phy_id = MARVELL_PHY_ID_88E1111,
16 .phy_id_mask = MARVELL_PHY_ID_MASK,
17 .name = "Marvell 88E1111",
18 - .features = PHY_GBIT_FEATURES,
19 + .features = PHY_GBIT_FEATURES | SUPPORTED_Pause,
20 .flags = PHY_HAS_INTERRUPT,
21 .probe = marvell_probe,
22 .config_init = &m88e1111_config_init,