login
Header Space

 
 

Re: [GIT PULL] LED updates

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Richard Purdie <rpurdie@...>, Márton Németh <nm127@...>
Cc: LKML <linux-kernel@...>
Date: Thursday, February 7, 2008 - 5:38 pm

On Thu, 07 Feb 2008, Richard Purdie wrote:

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.

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.

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


This one causes trouble (at least on 2.6.23 -- I backported the patch) due
to the 20-byte length limit on sysfs names.  I had to use "tp::<somecrap>"
instead of "thinkpad::<somecrap>" to name LEDs, and still had to reduce
ultrabase_battery to ultrabase_batt :-)

Anyway, IMHO, the LED function should come first, and we should not even
need the led driver name anywhere.  In case of clashes in the class sysfs
dir, just tack a .# to the end or somesuch.  The device the LED is tied to
already differentiates them.  That would save a lot of chars for something
much more useful (the function).

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] LED updates, Richard Purdie, (Thu Feb 7, 6:35 am)
Re: [GIT PULL] LED updates, Henrique de Moraes Holschuh..., (Thu Feb 7, 5:38 pm)
Re: [GIT PULL] LED updates, Richard Purdie, (Thu Feb 7, 6:13 pm)
Re: [GIT PULL] LED updates, Henrique de Moraes Holschuh..., (Sun Mar 16, 2:18 pm)
Re: [GIT PULL] LED updates, Richard Purdie, (Sun Mar 16, 3:29 pm)
Re: [GIT PULL] LED updates, Henrique de Moraes Holschuh..., (Sun Mar 16, 3:48 pm)
LED naming standard for LED class, Henrique de Moraes Holschuh..., (Sun Mar 16, 11:34 pm)
Re: LED naming standard for LED class, Richard Purdie, (Mon Mar 17, 5:51 am)
Re: LED naming standard for LED class, Henrique de Moraes Holschuh..., (Mon Mar 17, 11:35 pm)
Re: LED naming standard for LED class, Henrique de Moraes Holschuh..., (Tue Mar 18, 12:55 am)
Re: [GIT PULL] LED updates, Németh Márton, (Fri Feb 8, 3:03 am)
Re: [GIT PULL] LED updates, Henrique de Moraes Holschuh..., (Fri Feb 8, 7:20 am)
Re: [GIT PULL] LED updates, Németh Márton, (Sun Feb 10, 7:52 am)
[PATCH] leds: disable triggers on brightness set, Henrique de Moraes Holschuh..., (Thu Feb 7, 7:23 pm)
Re: [PATCH] leds: disable triggers on brightness set, Németh Márton, (Sun Feb 10, 7:52 am)
Re: [PATCH] leds: disable triggers on brightness set, Richard Purdie, (Sun Feb 17, 7:30 pm)
Re: [PATCH] leds: disable triggers on brightness set, Henrique de Moraes Holschuh..., (Sun Feb 17, 9:59 pm)
speck-geostationary