Skip to content

Commit 215d08a

Browse files
hkallweitdavem330
authored andcommitted
net: phy: consider PHY_IGNORE_INTERRUPT in phy_start_aneg_priv
The situation described in the comment can occur also with PHY_IGNORE_INTERRUPT, therefore change the condition to include it. Fixes: f555f34 ("net: phy: fix auto-negotiation stall due to unavailable interrupt") Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1a03f86 commit 215d08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/phy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static int phy_start_aneg_priv(struct phy_device *phydev, bool sync)
514514
* negotiation may already be done and aneg interrupt may not be
515515
* generated.
516516
*/
517-
if (phy_interrupt_is_valid(phydev) && (phydev->state == PHY_AN)) {
517+
if (phydev->irq != PHY_POLL && phydev->state == PHY_AN) {
518518
err = phy_aneg_done(phydev);
519519
if (err > 0) {
520520
trigger = true;

0 commit comments

Comments
 (0)