diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 4b100ef4af9f..5adaf537513b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |||
@@ -272,8 +272,14 @@ bool stmmac_eee_init(struct stmmac_priv *priv) | |||
272 | { | 272 | { |
273 | char *phy_bus_name = priv->plat->phy_bus_name; | 273 | char *phy_bus_name = priv->plat->phy_bus_name; |
274 | unsigned long flags; | 274 | unsigned long flags; |
275 | int interface = priv->plat->interface; | ||
275 | bool ret = false; | 276 | bool ret = false; |
276 | 277 | ||
278 | if ((interface != PHY_INTERFACE_MODE_MII) && | ||
279 | (interface != PHY_INTERFACE_MODE_GMII) && | ||
280 | !phy_interface_mode_is_rgmii(interface)) | ||
281 | goto out; | ||
282 | |||
277 | /* Using PCS we cannot dial with the phy registers at this stage | 283 | /* Using PCS we cannot dial with the phy registers at this stage |
278 | * so we do not support extra feature like EEE. | 284 | * so we do not support extra feature like EEE. |
279 | */ | 285 | */ |