Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiner Kallweit and committed by
David S. Miller
eaf47b17 4cb160d0

+1 -1
+1 -1
drivers/net/phy/phy.c
··· 894 894 needs_aneg = true; 895 895 break; 896 896 case PHY_NOLINK: 897 - if (phy_interrupt_is_valid(phydev)) 897 + if (phydev->irq != PHY_POLL) 898 898 break; 899 899 900 900 err = phy_read_status(phydev);