2
0

405-net-phy-allow-EEE-with-SGMII-interface-modes.patch 854 B

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