提交 ecf7b361 编写于 作者: S Stas Sergeev 提交者: David S. Miller

mvneta: dont call mvneta_adjust_link() manually

mvneta_adjust_link() is a callback for of_phy_connect() and should
not be called directly. The result of calling it directly is as below:
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f60e5990
...@@ -2658,16 +2658,11 @@ static int mvneta_stop(struct net_device *dev) ...@@ -2658,16 +2658,11 @@ static int mvneta_stop(struct net_device *dev)
static int mvneta_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) static int mvneta_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{ {
struct mvneta_port *pp = netdev_priv(dev); struct mvneta_port *pp = netdev_priv(dev);
int ret;
if (!pp->phy_dev) if (!pp->phy_dev)
return -ENOTSUPP; return -ENOTSUPP;
ret = phy_mii_ioctl(pp->phy_dev, ifr, cmd); return phy_mii_ioctl(pp->phy_dev, ifr, cmd);
if (!ret)
mvneta_adjust_link(dev);
return ret;
} }
/* Ethtool methods */ /* Ethtool methods */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册