From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: Ben Whitten <ben.whitten@gmail.com>, rpurdie@rpsys.net, pavel@ucw.cz
Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH/RFC v2] leds: trigger: Introduce a NETDEV trigger
Date: Tue, 5 Dec 2017 21:38:31 +0100 [thread overview]
Message-ID: <6cad314f-3cef-ec74-b55e-cccae28da4ab@gmail.com> (raw)
In-Reply-To: <1512472751-10928-1-git-send-email-ben.whitten@lairdtech.com>
Hi Ben,
On 12/05/2017 12:19 PM, Ben Whitten wrote:
> 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.
Please check if the LED class driver you're testing the trigger with
implements blink_set op. If yes it would be good to check if it doesn't
align the delay intervals to the hardware capabilities instead of
failing and relying on a LED core software blink fallback.
> 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
>
--
Best regards,
Jacek Anaszewski
next prev parent reply other threads:[~2017-12-05 20:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2017-12-06 20:07 ` Ben Whitten
2017-12-07 11:35 ` Ben Whitten
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6cad314f-3cef-ec74-b55e-cccae28da4ab@gmail.com \
--to=jacek.anaszewski@gmail.com \
--cc=ben.whitten@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).