summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>2017-11-02 00:49:18 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-08 10:24:14 +0900
commit3928ee6485a316c8abde7e24c7f82033a1c8d3ae (patch)
tree378a10aff03520fdd94bffb6f41463ec4bb939ac /include/linux/phy.h
parentff198cdb9642851e01e41cdeb76d6cd86e8c427c (diff)
downloadlinux-3928ee6485a316c8abde7e24c7f82033a1c8d3ae.tar.gz
linux-3928ee6485a316c8abde7e24c7f82033a1c8d3ae.tar.bz2
linux-3928ee6485a316c8abde7e24c7f82033a1c8d3ae.zip
net: phy: leds: Add support for "link" trigger
Currently, we create a LED trigger for any link speed known to a PHY. These triggers only fire when their exact link speed had been negotiated (they aren't cumulative, that is, they don't fire for "their or any higher" link speed). What we are missing, however, is a trigger which will fire on any link speed known to the PHY. Such trigger can then be used for implementing a poor man's substitute of the "link" LED on boards that lack it. Let's add it. Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index d78cd01ea513..dc82a07cb4fd 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -451,6 +451,8 @@ struct phy_device {
struct phy_led_trigger *phy_led_triggers;
unsigned int phy_num_led_triggers;
struct phy_led_trigger *last_triggered;
+
+ struct phy_led_trigger *led_link_trigger;
#endif
/*