net: phy: consider PHY_IGNORE_INTERRUPT in phy_start_aneg_priv
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 19 Jul 2018 06:15:16 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 28 Jul 2018 05:55:42 +0000 (07:55 +0200)
commit50b464d33964282fb09be7d6d8a6063475f63814
treecade35693e7273fbc1a4ef4a5b06b590678a6e67
parent46f9e1d0bd4e52cd4fefcc6a7a28066f877857af
net: phy: consider PHY_IGNORE_INTERRUPT in phy_start_aneg_priv

[ Upstream commit 215d08a85b9acf5e1fe9dbf50f1774cde333efef ]

The situation described in the comment can occur also with
PHY_IGNORE_INTERRUPT, therefore change the condition to include it.

Fixes: f555f34fdc58 ("net: phy: fix auto-negotiation stall due to unavailable interrupt")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/phy.c