From: Heiner Kallweit Date: Wed, 30 May 2018 20:13:20 +0000 (+0200) Subject: net: phy: consider PHY_IGNORE_INTERRUPT in state machine PHY_NOLINK handling X-Git-Tag: v5.15~8692^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaf47b17a77fda841a1102d76c15161ee438b347;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 05c1e8e..537297d 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -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);