]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: phylink: Allow setting a custom link state callback
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 13 Dec 2017 00:00:28 +0000 (16:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 20:55:01 +0000 (15:55 -0500)
commiteb9cd1ce0ddcfe052c063c8d80cf3e0c783a5500
tree8a595ffaeaa95336e249b8b1d19acef770001028
parent7bc47225a9a3b7c9be83abfb5191209a022a4766
net: phy: phylink: Allow setting a custom link state callback

phylink_get_fixed_state() currently consults an optional "link_gpio"
GPIO descriptor, expand this mechanism to allow specifying a custom
callback. This is necessary to support out of band link notifcation
(e.g: from an interrupt within a MMIO register).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c
include/linux/phylink.h