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

Commit 6384e483 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller
Browse files

net: phy: trigger state machine immediately in phy_start_machine



When starting the state machine there may be work to be done
immediately, e.g. if the initial state is PHY_UP then the state
machine may trigger an autonegotiation. Having said that I see no need
to wait a second until the state machine is run first time.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a75d1801
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -654,7 +654,7 @@ static void phy_queue_state_machine(struct phy_device *phydev,
 */
void phy_start_machine(struct phy_device *phydev)
{
	phy_queue_state_machine(phydev, 1);
	phy_trigger_machine(phydev);
}
EXPORT_SYMBOL_GPL(phy_start_machine);