]> asedeno.scripts.mit.edu Git - linux.git/commit
net: phy: leds: Add support for "link" trigger
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Wed, 1 Nov 2017 23:49:18 +0000 (00:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 01:24:14 +0000 (10:24 +0900)
commit3928ee6485a316c8abde7e24c7f82033a1c8d3ae
tree378a10aff03520fdd94bffb6f41463ec4bb939ac
parentff198cdb9642851e01e41cdeb76d6cd86e8c427c
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>
drivers/net/phy/Kconfig
drivers/net/phy/phy_led_triggers.c
include/linux/phy.h