All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH/RFC v2] leds: trigger: Introduce a NETDEV trigger
@ 2017-12-05 11:19 Ben Whitten
  2017-12-05 11:19 ` Ben Whitten
  2017-12-05 20:38 ` Jacek Anaszewski
  0 siblings, 2 replies; 5+ messages in thread
From: Ben Whitten @ 2017-12-05 11:19 UTC (permalink / raw)
  To: rpurdie, pavel, jacek.anaszewski
  Cc: linux-leds, linux-kernel, netdev, Ben Whitten

From: Ben Whitten <ben.whitten@gmail.com>

The patch was converted to led_blink_oneshot, in doing so we find that the
behaviour has changed. As I dont want to break 'userspace' led behaviour this
patch shouldn't be merged as is. Open to suggestions.

Given an interval of 50ms and heavy throughput, the previous implementation
produced a blink with 100ms period and 50% dutycycle. The led_blink_oneshot
version produces a blink with 140ms period and 57% dutycycle.
I assume a fudge factor on the oneshot delay to bring the period back to 100ms
would be device specific so not suitable.

Kind regards,
Ben Whitten (1):
  leds: trigger: Introduce a NETDEV trigger

 .../ABI/testing/sysfs-class-led-trigger-netdev     |  45 ++
 drivers/leds/trigger/Kconfig                       |   7 +
 drivers/leds/trigger/Makefile                      |   1 +
 drivers/leds/trigger/ledtrig-netdev.c              | 507 +++++++++++++++++++++
 4 files changed, 560 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-led-trigger-netdev
 create mode 100644 drivers/leds/trigger/ledtrig-netdev.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-07 11:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 11:19 [PATCH/RFC v2] leds: trigger: Introduce a NETDEV trigger Ben Whitten
2017-12-05 11:19 ` Ben Whitten
2017-12-05 20:38 ` Jacek Anaszewski
2017-12-06 20:07   ` Ben Whitten
2017-12-07 11:35     ` Ben Whitten

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.