diff options
-rw-r--r-- | drivers/net/stmmac/stmmac_ethtool.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/stmmac/stmmac_ethtool.c b/drivers/net/stmmac/stmmac_ethtool.c index 6f5aaeb986ff..9c05cf07a432 100644 --- a/drivers/net/stmmac/stmmac_ethtool.c +++ b/drivers/net/stmmac/stmmac_ethtool.c | |||
@@ -236,17 +236,8 @@ stmmac_set_pauseparam(struct net_device *netdev, | |||
236 | priv->flow_ctrl = new_pause; | 236 | priv->flow_ctrl = new_pause; |
237 | 237 | ||
238 | if (phy->autoneg) { | 238 | if (phy->autoneg) { |
239 | if (netif_running(netdev)) { | 239 | if (netif_running(netdev)) |
240 | struct ethtool_cmd cmd = { .cmd = ETHTOOL_SSET }; | 240 | ret = phy_start_aneg(phy); |
241 | /* auto-negotiation automatically restarted */ | ||
242 | cmd.supported = phy->supported; | ||
243 | cmd.advertising = phy->advertising; | ||
244 | cmd.autoneg = phy->autoneg; | ||
245 | ethtool_cmd_speed_set(&cmd, phy->speed); | ||
246 | cmd.duplex = phy->duplex; | ||
247 | cmd.phy_address = phy->addr; | ||
248 | ret = phy_ethtool_sset(phy, &cmd); | ||
249 | } | ||
250 | } else | 241 | } else |
251 | priv->hw->mac->flow_ctrl(priv->ioaddr, phy->duplex, | 242 | priv->hw->mac->flow_ctrl(priv->ioaddr, phy->duplex, |
252 | priv->flow_ctrl, priv->pause); | 243 | priv->flow_ctrl, priv->pause); |