aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/phy/phy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 5a314edc2744..9bc11773705b 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -737,8 +737,6 @@ void phy_stop(struct phy_device *phydev)
737 if (PHY_HALTED == phydev->state) 737 if (PHY_HALTED == phydev->state)
738 goto out_unlock; 738 goto out_unlock;
739 739
740 phydev->state = PHY_HALTED;
741
742 if (phydev->irq != PHY_POLL) { 740 if (phydev->irq != PHY_POLL) {
743 /* Disable PHY Interrupts */ 741 /* Disable PHY Interrupts */
744 phy_config_interrupt(phydev, PHY_INTERRUPT_DISABLED); 742 phy_config_interrupt(phydev, PHY_INTERRUPT_DISABLED);
@@ -747,6 +745,8 @@ void phy_stop(struct phy_device *phydev)
747 phy_clear_interrupt(phydev); 745 phy_clear_interrupt(phydev);
748 } 746 }
749 747
748 phydev->state = PHY_HALTED;
749
750out_unlock: 750out_unlock:
751 spin_unlock_bh(&phydev->lock); 751 spin_unlock_bh(&phydev->lock);
752 752