commit | 1ac63e392e57ffbcd2b567f2c69474f3e9cb889d | [log] [tgz] |
---|---|---|
author | Florian Fainelli <f.fainelli@gmail.com> | Tue Dec 12 16:00:28 2017 -0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Dec 13 15:55:01 2017 -0500 |
tree | 8a595ffaeaa95336e249b8b1d19acef770001028 | |
parent | d38b4afd51c19278d6c4fd29c5215ad92ffed48e [diff] |
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>