stmmac: fix PHY reset during resume
[linux-2.6-microblaze.git] / drivers / net / phy / phy.c
index adb48ab..48ce6ef 100644 (file)
@@ -863,6 +863,9 @@ void phy_state_machine(struct work_struct *work)
                        needs_aneg = true;
                break;
        case PHY_NOLINK:
+               if (phy_interrupt_is_valid(phydev))
+                       break;
+
                err = phy_read_status(phydev);
                if (err)
                        break;