Skip to content

Commit

Permalink
net: phy: consider PHY_IGNORE_INTERRUPT in state machine PHY_NOLINK h…
Browse files Browse the repository at this point in the history
…andling

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: Heiner Kallweit <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hkallweit authored and davem330 committed Jun 3, 2018
1 parent 4cb160d commit eaf47b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ void phy_state_machine(struct work_struct *work)
needs_aneg = true;
break;
case PHY_NOLINK:
if (phy_interrupt_is_valid(phydev))
if (phydev->irq != PHY_POLL)
break;

err = phy_read_status(phydev);
Expand Down

0 comments on commit eaf47b1

Please sign in to comment.