Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: David S. Miller <davem@davemloft.net>

authored by

Stas Sergeev and committed by
David S. Miller
ecf7b361 f60e5990

+1 -6
+1 -6
drivers/net/ethernet/marvell/mvneta.c
··· 2658 2658 static int mvneta_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) 2659 2659 { 2660 2660 struct mvneta_port *pp = netdev_priv(dev); 2661 - int ret; 2662 2661 2663 2662 if (!pp->phy_dev) 2664 2663 return -ENOTSUPP; 2665 2664 2666 - ret = phy_mii_ioctl(pp->phy_dev, ifr, cmd); 2667 - if (!ret) 2668 - mvneta_adjust_link(dev); 2669 - 2670 - return ret; 2665 + return phy_mii_ioctl(pp->phy_dev, ifr, cmd); 2671 2666 } 2672 2667 2673 2668 /* Ethtool methods */