]> git.baikalelectronics.ru Git - kernel.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)
commit4413c9a252fbdf78e15ea1a5152b632d6e641d05
tree378a10aff03520fdd94bffb6f41463ec4bb939ac
parentbba2cb8cd1cdcca7066348b7c4ad44c225525bb3
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