Re: [GIT PULL] LED updates



Richard Purdie wrote:
On Thu, 2008-02-07 at 19:38 -0200, Henrique de Moraes Holschuh wrote:
On Thu, 07 Feb 2008, Richard Purdie wrote:
Márton Németh:
leds: Add support for hardware accelerated LED flashing
leds: hw acceleration for Clevo mail LED driver
This one has a loose end: when you call brightness_set on a led with
hardware flash acceleration, you will leave the trigger armed, BUT the led
won't blink anymore. That's just wrong.

Agreed.

My only question is that do you know any LED hardware which can blink _and_
can set the brightness independently? If there would be such a LED I could
imagine that the brightness can be changed while the LED remains blinking at
some low frequency. For example a simple LED with brightness set possibility and
blinking directed by software is an example where the blinking and the brightness
setting are completely independent.

I agree, however, that if the brightness is set to LED_OFF, the trigger
should be also removed.

Either we should always remove *any* (hardware accelerated or not!) active
trigger when a write to brightness_set is done, or the stuff about "calling
brightness_set will disable the hardware accelerated blink" has to go.

I personally prefer that we would always remove any active trigger if
brightness_set is to be called. IMHO, it is neater, and it is also the
least-surprise-behaviour from an user perspective with the LED_OFF:LED_FULL
triggers we have right now.

Even without the hardware acceleration, a user write to set_brightness
leaves any active trigger active and isn't really intuitive or right
either.

Which one will be? If it is "remove any active trigger", I'd not mind
writing the patch.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] leds: disable triggers on brightness set
    ... Disable any active triggers when the brightness attribute is ... Complex triggers whilst available to all LEDs have LED specific ... The timer trigger is an example. ... extern struct list_head leds_list; ...
    (Linux-Kernel)
  • Re: [GIT PULL] LED updates
    ... won't blink anymore. ... can set the brightness independently? ... is not common on indicator LEDs. ... If we go and fix every trigger to use the current brightness (as long as it ...
    (Linux-Kernel)
  • Re: [RFC PATCH 1/8] LED: Add LED Class
    ... for brightness changes, lock or no lock. ... The reason is that trigger ... Corgi/Spitz already don't suspend one of the leds under certain ... I'd prefer LEDS but this will clash with ARM. ...
    (Linux-Kernel)
  • Re: [PATCH] Create new LED trigger for CPU activity
    ... This patch creates a new LED trigger that triggers whenever the CPU is ... This allows LEDs to be controlled by IDE disk activity. ... config LEDS_TRIGGER_HEARTBEAT ...
    (Linux-Kernel)
  • Re: [GIT PULL] LED updates
    ... My only question is that do you know any LED hardware which can blink _and_ ... can set the brightness independently? ... is not common on indicator LEDs. ... If we go and fix every trigger to use the current brightness (as long as it ...
    (Linux-Kernel)