]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Use interrupts when available in NOLINK state
authorAndrew Lunn <andrew@lunn.ch>
Mon, 16 Nov 2015 22:36:46 +0000 (23:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2015 20:25:44 +0000 (15:25 -0500)
commit04b53e7e57e5017b9c0924ac7caf4a2d9e4019b4
treeb8d964dbcca37c2b52daa42881fab50b4c0b3d48
parent44ba92f66e89680890eff2928a1cebc5e6d87673
net: phy: Use interrupts when available in NOLINK state

The NOLINK state will poll the phy once a second to see if the link
has come up. If the phy has an interrupt line, this polling can be
skipped, since the phy should interrupt when the link returns.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c