mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-16 03:37:05 +00:00
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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4cb160d0a6
commit
eaf47b17a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue