aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-10-11 19:31:47 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-15 22:00:06 -0700
commit6384e483239fd07a2d4393f888027118fecd4c6e (patch)
tree17c28d99d5084cf46cc0154e555db0f663dfc92a /drivers/net/phy/phy.c
parentMerge branch 'veth-XDP-stats-improvement' (diff)
downloadlinux-dev-6384e483239fd07a2d4393f888027118fecd4c6e.tar.xz
linux-dev-6384e483239fd07a2d4393f888027118fecd4c6e.zip
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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r--drivers/net/phy/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 14509a8903c6..7044282110da 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -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);