Re: [PATCH 3/4] leds: Add option to have GPIO LEDs start on

2008-10-24 Thread Grant Likely
On Fri, Oct 24, 2008 at 5:09 PM, Trent Piepho <[EMAIL PROTECTED]> wrote: > Yes, there is the "default-on" trigger but there are problems with that. [...] > The platform device binding gains a field in the platform data "default_state" > that controls this. The OpenFirmware binding uses a property

[PATCH 3/4] leds: Add option to have GPIO LEDs start on

2008-10-24 Thread Trent Piepho
Yes, there is the "default-on" trigger but there are problems with that. For one, it's a inefficient way to do it and requires led trigger support to be compiled in. But the real reason is that is produces a glitch on the LED. The GPIO is allocate with the LED *off*, then *later* when then trigg