projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb160d
)
net: phy: consider PHY_IGNORE_INTERRUPT in state machine PHY_NOLINK handling
author
Heiner Kallweit
<hkallweit1@gmail.com>
Wed, 30 May 2018 20:13:20 +0000
(22:13 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sun, 3 Jun 2018 12:50:10 +0000
(08:50 -0400)
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>
drivers/net/phy/phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phy.c
b/drivers/net/phy/phy.c
index 05c1e8ef15e61d26beac3542a0ab2836cab6c3a6..537297d2b4b4309adeacd1e66541b2aa1830b8b8 100644
(file)
--- 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 (phy
dev->irq != PHY_POLL
)
break;
err = phy_read_status(phydev);