Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33f18c96 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller
Browse files

net: ethernet: don't set phylib state CHANGELINK in drivers



After phy_start() phylib takes care of all needed actions, including
aneg settings and checking link state. There's no need to set state
PHY_CHANGELINK in drivers.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 624b66f8
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -940,11 +940,8 @@ static int au1000_open(struct net_device *dev)
		return retval;
	}

	if (dev->phydev) {
		/* cause the PHY state machine to schedule a link state check */
		dev->phydev->state = PHY_CHANGELINK;
	if (dev->phydev)
		phy_start(dev->phydev);
	}

	netif_start_queue(dev);

+0 −1
Original line number Diff line number Diff line
@@ -991,7 +991,6 @@ static int cpmac_open(struct net_device *dev)
	cpmac_hw_start(dev);

	napi_enable(&priv->napi);
	dev->phydev->state = PHY_CHANGELINK;
	phy_start(dev->phydev);

	return 0;