aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-01-23 07:27:21 +0100
committerDavid S. Miller <davem@davemloft.net>2019-01-24 22:15:15 -0800
commita016becd3a56cdb260013c8fe1d4aefc6edc4989 (patch)
tree9e47392ab913ecf51d96fe9406994e3f2fc89c37 /drivers/net/phy/phy.c
parentnet: stmmac: Fix return value check in qcom_ethqos_probe() (diff)
downloadlinux-dev-a016becd3a56cdb260013c8fe1d4aefc6edc4989.tar.xz
linux-dev-a016becd3a56cdb260013c8fe1d4aefc6edc4989.zip
net: phy: start state machine in phy_start only
The state machine is a no-op before phy_start() has been called. Therefore let's enable it in phy_start() only. In phy_start() let's call phy_start_machine() instead of phy_trigger_machine(). phy_start_machine is an alias for phy_trigger_machine but it makes clearer that we start the state machine here instead of just triggering a run. 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 631ed33fe9d9..a7fca15888b6 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -878,7 +878,7 @@ void phy_start(struct phy_device *phydev)
}
mutex_unlock(&phydev->lock);
- phy_trigger_machine(phydev);
+ phy_start_machine(phydev);
}
EXPORT_SYMBOL(phy_start);