···11+-*- org -*-22+33+* On/off LEDs should have max_brightness of 144+* Get rid of enum led_brightness55+66+It is really an integer, as maximum is configurable. Get rid of it, or77+make it into typedef or something.88+99+* Review atomicity requirements in LED subsystem1010+1111+Calls that may and that may not block are mixed in same structure, and1212+semantics is sometimes non-intuitive. (For example blink callback may1313+not sleep.) Review the requirements for any bugs and document them1414+clearly.1515+1616+* LED names are still a mess1717+1818+No two LEDs have same name, so the names are probably unusable for the1919+userland. Nudge authors into creating common LED names for common2020+functionality.2121+2222+? Perhaps check for known LED names during boot, and warn if there are2323+LEDs not on the list?2424+2525+* Split drivers into subdirectories2626+2727+The number of drivers is getting big, and driver for on/off LED on a2828+i/o port is really quite different from camera flash LED, which is2929+really different from driver for RGB color LED that can run its own3030+microcode. Split the drivers somehow.3131+3232+* Figure out what to do with RGB leds3333+3434+Multicolor is a bit too abstract. Yes, we can have3535+Green-Magenta-Ultraviolet LED, but so far all the LEDs we support are3636+RGB, and not even RGB-White or RGB-Yellow variants emerged.3737+3838+Multicolor is not a good fit for RGB LED. It does not really know3939+about LED color. In particular, there's no way to make LED "white".4040+4141+Userspace is interested in knowing "this LED can produce arbitrary4242+color", which not all multicolor LEDs can.4343+4444+ Proposal: let's add "rgb" to led_colors in drivers/leds/led-core.c,4545+ add corresponding device tree defines, and use that, instead of4646+ multicolor for RGB LEDs.4747+4848+ We really need to do that now; "white" stuff can wait.4949+5050+RGB LEDs are quite common, and it would be good to be able to turn LED5151+white and to turn it into any arbitrary color. It is essential that5252+userspace is able to set arbitrary colors, and it might be good to5353+have that ability from kernel, too... to allow full-color triggers.5454+5555+* Command line utility to manipulate the LEDs?5656+5757+/sys interface is not really suitable to use by hand, should we have5858+an utility to perform LED control?5959+6060+In particular, LED names are still a mess (see above) and utility6161+could help there by presenting both old and new names while we clean6262+them up.6363+6464+In future, I'd like utility to accept both old and new names while we6565+clean them up.6666+6767+It would be also nice to have useful listing mode -- name, type,6868+current brightness/trigger...6969+7070+In future, it would be good to be able to set rgb led to particular7171+color.7272+7373+And probably user-friendly interface to access LEDs for particular7474+ethernet interface would be nice.7575+