Skip to content

Commit

Permalink
net: phy: trigger state machine immediately in phy_start_machine
Browse files Browse the repository at this point in the history
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: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed Oct 16, 2018
1 parent a75d180 commit 6384e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6384e48

Please sign in to comment.