Skip to contentSkip to conversation

net: phy: trigger state machine immediately in phy_start_machine

PATCH Applied Heiner Kallweit 2 participants 2 messages Oct 12, 2018 – Oct 16, 2018

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/phy/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/phy.c +1 -1
index 14509a890..704428211 100644
@@ -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);
 
Signature · 1 line
2.19.1
maintainer Applied
#1 lore raw

From: Heiner Kallweit <[email protected]>
Date: Thu, 11 Oct 2018 19:31:47 +0200

Quoted 6 lines

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.

Applied.