kernel: update kernel 4.9 to 4.9.29
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.9 / 405-net-phy-allow-EEE-with-SGMII-interface-modes.patch
1 From: Russell King <rmk+kernel@armlinux.org.uk>
2 Date: Thu, 5 Jan 2017 09:34:42 +0000
3 Subject: [PATCH] net: phy: allow EEE with SGMII interface modes
4
5 As EEE is able to work in SGMII mode as well, add it to the list of
6 permissable EEE modes that phy_init_eee() will accept. This is
7 necessary so that EEE can work with an 88E1512 connected in SGMII mode.
8
9 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
10 ---
11
12 --- a/drivers/net/phy/phy.c
13 +++ b/drivers/net/phy/phy.c
14 @@ -1227,6 +1227,7 @@ int phy_init_eee(struct phy_device *phyd
15 if ((phydev->duplex == DUPLEX_FULL) &&
16 ((phydev->interface == PHY_INTERFACE_MODE_MII) ||
17 (phydev->interface == PHY_INTERFACE_MODE_GMII) ||
18 + phydev->interface == PHY_INTERFACE_MODE_SGMII ||
19 phy_interface_is_rgmii(phydev) ||
20 phy_is_internal(phydev))) {
21 int eee_lp, eee_cap, eee_adv;