Commit b5b6bb9b authored by Phil Elwell's avatar Phil Elwell
Browse files

lan78xx: Don't reset the interface on open

With Alexander Graf's patch ("lan78xx: Connect phy early") applied,
the call to lan78xx_reset within lan78xx_open prevents the phy
interrupt from being generated (even though the link is up).

Avoid this issue by removing the lan78xx_reset call.

See: https://github.com/raspberrypi/linux/issues/2437
     https://github.com/raspberrypi/linux/issues/2442
     https://github.com/raspberrypi/linux/issues/2457
parent c11ae4fe
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2553,10 +2553,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");