From: Phil Elwell Date: Tue, 10 Apr 2018 12:18:25 +0000 (+0100) Subject: lan78xx: Don't reset the interface on open X-Git-Tag: v4.14.79~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9627a218e2b2a42b812499ccb5d92707482d5d0;p=platform%2Fkernel%2Flinux-rpi.git lan78xx: Don't reset the interface on open [ Upstream commit 47b998653fea4ef69e3e89574956386f262bccca ] Commit 92571a1aae40 ("lan78xx: Connect phy early") moves the PHY initialisation into lan78xx_probe, but lan78xx_open subsequently calls lan78xx_reset. As well as forcing a second round of link negotiation, this reset frequently prevents the phy interrupt from being generated (even though the link is up), rendering the interface unusable. Fix this issue by removing the lan78xx_reset call from lan78xx_open. Fixes: 92571a1aae40 ("lan78xx: Connect phy early") Signed-off-by: Phil Elwell Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 00ddcaf..50e2e10a 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2508,10 +2508,6 @@ static int lan78xx_open(struct net_device *net) if (ret < 0) goto out; - ret = lan78xx_reset(dev); - if (ret < 0) - goto done; - phy_start(net->phydev); netif_dbg(dev, ifup, dev->net, "phy initialised successfully");