Commit eaf47b17 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

net: phy: consider PHY_IGNORE_INTERRUPT in state machine PHY_NOLINK handling

We can bail out immediately also in case of PHY_IGNORE_INTERRUPT because
phy_mac_interupt() informs us once the link is up.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4cb160d0
...@@ -894,7 +894,7 @@ void phy_state_machine(struct work_struct *work) ...@@ -894,7 +894,7 @@ void phy_state_machine(struct work_struct *work)
needs_aneg = true; needs_aneg = true;
break; break;
case PHY_NOLINK: case PHY_NOLINK:
if (phy_interrupt_is_valid(phydev)) if (phydev->irq != PHY_POLL)
break; break;
err = phy_read_status(phydev); err = phy_read_status(phydev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment