Skip to content

Commit 08f5138

Browse files
hkallweitdavem330
authored andcommitted
net: phy: fix phy_start to consider PHY_IGNORE_INTERRUPT
This condition wasn't adjusted when PHY_IGNORE_INTERRUPT (-2) was added long ago. In case of PHY_IGNORE_INTERRUPT the MAC interrupt indicates also PHY state changes and we should do what the symbol says. Fixes: 84a527a ("net: phylib: fix interrupts re-enablement in phy_start") Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 88c991a commit 08f5138

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
@@ -822,7 +822,7 @@ void phy_start(struct phy_device *phydev)
822822
phy_resume(phydev);
823823

824824
/* make sure interrupts are re-enabled for the PHY */
825-
if (phydev->irq != PHY_POLL) {
825+
if (phy_interrupt_is_valid(phydev)) {
826826
err = phy_enable_interrupts(phydev);
827827
if (err < 0)
828828
break;

0 commit comments

Comments
 (0)