diff options
| -rw-r--r-- | drivers/net/phy/phy.c | 1 | ||||
| -rw-r--r-- | drivers/net/phy/phy_device.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index b0632e859564..37cf39fdcc91 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c | |||
| @@ -858,6 +858,7 @@ void phy_stop(struct phy_device *phydev) | |||
| 858 | mutex_unlock(&phydev->lock); | 858 | mutex_unlock(&phydev->lock); |
| 859 | 859 | ||
| 860 | phy_state_machine(&phydev->state_queue.work); | 860 | phy_state_machine(&phydev->state_queue.work); |
| 861 | phy_stop_machine(phydev); | ||
| 861 | 862 | ||
| 862 | /* Cannot call flush_scheduled_work() here as desired because | 863 | /* Cannot call flush_scheduled_work() here as desired because |
| 863 | * of rtnl_lock(), but PHY_HALTED shall guarantee irq handler | 864 | * of rtnl_lock(), but PHY_HALTED shall guarantee irq handler |
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 616a5fe47f56..e269a355012d 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
| @@ -1005,8 +1005,6 @@ void phy_disconnect(struct phy_device *phydev) | |||
| 1005 | if (phydev->irq > 0) | 1005 | if (phydev->irq > 0) |
| 1006 | phy_stop_interrupts(phydev); | 1006 | phy_stop_interrupts(phydev); |
| 1007 | 1007 | ||
| 1008 | phy_stop_machine(phydev); | ||
| 1009 | |||
| 1010 | phydev->adjust_link = NULL; | 1008 | phydev->adjust_link = NULL; |
| 1011 | 1009 | ||
| 1012 | phy_detach(phydev); | 1010 | phy_detach(phydev); |
