Re: [RFC PATCH] net: stmmac: enable EEE in MII, GMII or RGMII only

2017-12-14 Thread Rtp
Jerome Brunet writes: > Note in the databook - Section 4.4 - EEE : > " The EEE feature is not supported when the MAC is configured to use the > TBI, RTBI, SMII, RMII or SGMII single PHY interface. Even if the MAC > supports multiple PHY interfaces, you should activate the EEE mode only > when the

Re: [RFC PATCH] net: stmmac: enable EEE in MII, GMII or RGMII only

2017-12-05 Thread Andrew Lunn
> bool stmmac_eee_init(struct stmmac_priv *priv) > { > struct net_device *ndev = priv->dev; > + int interface = priv->plat->interface; > unsigned long flags; > bool ret = false; > > + if ((interface != PHY_INTERFACE_MODE_MII) && > + (interface != PHY_INTERFACE_

[RFC PATCH] net: stmmac: enable EEE in MII, GMII or RGMII only

2017-12-05 Thread Jerome Brunet
Note in the databook - Section 4.4 - EEE : " The EEE feature is not supported when the MAC is configured to use the TBI, RTBI, SMII, RMII or SGMII single PHY interface. Even if the MAC supports multiple PHY interfaces, you should activate the EEE mode only when the MAC is operating with GMII, MII,