407d23ab2e59dd9e2bda790dca6de5cac045bf4f
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.9 / 432-phy-marvell-88E1512-add-flow-control-support.patch
1 From: Russell King <rmk+kernel@arm.linux.org.uk>
2 Date: Thu, 1 Oct 2015 00:34:08 +0100
3 Subject: [PATCH] phy: marvell: 88E1512: 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 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/phy/marvell.c
14 +++ b/drivers/net/phy/marvell.c
15 @@ -1679,7 +1679,8 @@ static struct phy_driver marvell_drivers
16 .phy_id = MARVELL_PHY_ID_88E1510,
17 .phy_id_mask = MARVELL_PHY_ID_MASK,
18 .name = "Marvell 88E1510",
19 - .features = PHY_GBIT_FEATURES | SUPPORTED_FIBRE,
20 + .features = PHY_GBIT_FEATURES | SUPPORTED_FIBRE |
21 + SUPPORTED_Pause,
22 .flags = PHY_HAS_INTERRUPT,
23 .probe = marvell_probe,
24 .config_init = &m88e1510_config_init,