Re: [PATCH] leds: trigger: Introduce a NETDEV trigger

2017-12-04 Thread Ben Whitten
Hi Jacek, Thank you for the review, trimmed and comments inline. On 3 December 2017 at 21:09, Jacek Anaszewski wrote: >> + * link - LED's normal state reflects whether the link is up >> + * (has carrier) or not >> + * tx - LED blinks on transmitted data >> + * rx - LED blinks on recei

Re: [PATCH] leds: trigger: Introduce a NETDEV trigger

2017-12-03 Thread Jacek Anaszewski
Hi Ben, Thanks for the patch. I have some comments in the code below. Please take a look. On 11/28/2017 10:54 PM, Ben Whitten wrote: > This commit introduces a NETDEV trigger for named device > activity. Available triggers are link, rx, and tx. > > Signed-off-by: Ben Whitten > --- > .../ABI/te

Re: [PATCH] leds: trigger: Introduce a NETDEV trigger

2017-11-28 Thread Andrew Lunn
> What LEDs do LED triggers manipulate? I.e., where are they? Any LEDs which the LED subsystem controls. This is emulating what PHYs can do with there LEDs, but using generic LEDs. Andrew

Re: [PATCH] leds: trigger: Introduce a NETDEV trigger

2017-11-28 Thread Randy Dunlap
On 11/28/2017 01:54 PM, Ben Whitten wrote: > diff --git a/drivers/leds/trigger/Kconfig b/drivers/leds/trigger/Kconfig > index 3f9ddb9..4ec1853 100644 > --- a/drivers/leds/trigger/Kconfig > +++ b/drivers/leds/trigger/Kconfig > @@ -126,4 +126,11 @@ config LEDS_TRIGGER_PANIC > a different tri

[PATCH] leds: trigger: Introduce a NETDEV trigger

2017-11-28 Thread Ben Whitten
This commit introduces a NETDEV trigger for named device activity. Available triggers are link, rx, and tx. Signed-off-by: Ben Whitten --- .../ABI/testing/sysfs-class-led-trigger-netdev | 45 +++ drivers/leds/trigger/Kconfig | 7 + drivers/leds/trigger/Makefile