diff options
author | Maciej S. Szmigiero <mail@maciej.szmigiero.name> | 2017-11-02 00:49:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-08 10:24:14 +0900 |
commit | 3928ee6485a316c8abde7e24c7f82033a1c8d3ae (patch) | |
tree | 378a10aff03520fdd94bffb6f41463ec4bb939ac /include/linux/phy.h | |
parent | ff198cdb9642851e01e41cdeb76d6cd86e8c427c (diff) |
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.h | 2 |
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 /* |