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

Commit 2a150c50 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by David S. Miller
Browse files

ravb: simplify link auto-negotiation by ethtool



There is no need to call a heavyweight phy_start_aneg() for phy
auto-negotiation by ethtool, the phy is already initialized and
link auto-negotiation is started by calling phy_start() from
ravb_phy_start() when a network device is opened.

Signed-off-by: default avatarVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Reviewed-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 05925e52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1136,7 +1136,7 @@ static int ravb_nway_reset(struct net_device *ndev)
	int error = -ENODEV;

	if (ndev->phydev)
		error = phy_start_aneg(ndev->phydev);
		error = phy_restart_aneg(ndev->phydev);

	return error;
}