Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1631846
| From | David Lin <dtwlin@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer |
| Date | 2017-04-27 05:50 +0200 |
| Message-ID | <tAIBj-3ex-1@gated-at.bofh.it> (permalink) |
| References | <tzE6J-2cz-1@gated-at.bofh.it> <tzSt3-33H-1@gated-at.bofh.it> <tzZ1w-7uG-5@gated-at.bofh.it> <tAf6i-Vi-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Apr 25, 2017 at 1:15 PM, Jacek Anaszewski <jacek.anaszewski@gmail.com> wrote: >> However, there's a need to >> support hrtimer if the LED subsystem claims support the use case of >> vibrator (please see Documentation/leds/ledtrig-transient.txt) as even >> a 5ms of variation is perceivable to the user. I'm thinking if a >> better interim solution is to introduce a >> LEDS_TRIGGER_TRANSIENT_HRTIMER config to work with both timers in >> compile time. Would you agree? > > I think that it would be better if LED class driver set a flag > marking itself as capable of setting brightness with high rate. > I'd limit that only to leds-gpio and devices driven through > memory mapped registers. > > Having the flag e.g. LED_BRIGHTNESS_FAST, we could add support for > hr timers also to ledtrig-timer. Can I resubmit the patch implementing LED_BRIGHTNESS_FAST using hrtimer? > > You can try also the other option mentioned by Pavel in [1]. Thanks, Pavel. It does look like that input-ff is a more appropriate subsystem for implementing a vibrator/haptics driver. It also seems that it's relying on the userspace to control the timing of the play/stop events which is likely to be less accurate than a hrtimer in the kernel. But it provides more effect control than the LED subsystem.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer David Lin <dtwlin@google.com> - 2017-04-25 05:10 +0200
Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2017-04-25 22:20 +0200
Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer David Lin <dtwlin@google.com> - 2017-04-27 05:50 +0200
Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2017-04-27 20:40 +0200
Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer Pavel Machek <pavel@ucw.cz> - 2017-04-26 00:40 +0200
Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2017-04-26 22:00 +0200
csiph-web