net: phy: start state machine in phy_start only
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 23 Jan 2019 06:27:21 +0000 (07:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 06:15:15 +0000 (22:15 -0800)
commita016becd3a56cdb260013c8fe1d4aefc6edc4989
tree9e47392ab913ecf51d96fe9406994e3f2fc89c37
parent8f4ebaaa8d97dc531a3f947a8d30a5a70fe38743
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>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c
drivers/net/phy/phylink.c