net: phylink: support for link gpio interrupt
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 28 May 2019 09:57:23 +0000 (10:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 May 2019 19:37:46 +0000 (12:37 -0700)
commit7b3b0e89bcf3acb56bf59666122226de0913a8b4
tree4585d08949e9f27852d72a21c8211f09e4b9c7b2
parent7fdc455eef205ca580d38fed376efc7bc81f98cd
net: phylink: support for link gpio interrupt

Add support for using GPIO interrupts with a fixed-link GPIO rather than
polling the GPIO every second and invoking the phylink resolution.  This
avoids unnecessary calls to mac_config().

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c