|
@@ -1792,6 +1792,7 @@ static int init_phy(struct net_device *dev)
|
|
GFAR_SUPPORTED_GBIT : 0;
|
|
GFAR_SUPPORTED_GBIT : 0;
|
|
phy_interface_t interface;
|
|
phy_interface_t interface;
|
|
struct phy_device *phydev;
|
|
struct phy_device *phydev;
|
|
|
|
+ struct ethtool_eee edata;
|
|
|
|
|
|
priv->oldlink = 0;
|
|
priv->oldlink = 0;
|
|
priv->oldspeed = 0;
|
|
priv->oldspeed = 0;
|
|
@@ -1816,6 +1817,10 @@ static int init_phy(struct net_device *dev)
|
|
/* Add support for flow control, but don't advertise it by default */
|
|
/* Add support for flow control, but don't advertise it by default */
|
|
phydev->supported |= (SUPPORTED_Pause | SUPPORTED_Asym_Pause);
|
|
phydev->supported |= (SUPPORTED_Pause | SUPPORTED_Asym_Pause);
|
|
|
|
|
|
|
|
+ /* disable EEE autoneg, EEE not supported by eTSEC */
|
|
|
|
+ memset(&edata, 0, sizeof(struct ethtool_eee));
|
|
|
|
+ phy_ethtool_set_eee(phydev, &edata);
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|