TODO 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. -*- org -*-
  2. * On/off LEDs should have max_brightness of 1
  3. * Get rid of enum led_brightness
  4. It is really an integer, as maximum is configurable. Get rid of it, or
  5. make it into typedef or something.
  6. * Review atomicity requirements in LED subsystem
  7. Calls that may and that may not block are mixed in same structure, and
  8. semantics is sometimes non-intuitive. (For example blink callback may
  9. not sleep.) Review the requirements for any bugs and document them
  10. clearly.
  11. * LED names are still a mess
  12. No two LEDs have same name, so the names are probably unusable for the
  13. userland. Nudge authors into creating common LED names for common
  14. functionality.
  15. ? Perhaps check for known LED names during boot, and warn if there are
  16. LEDs not on the list?
  17. * Split drivers into subdirectories
  18. The number of drivers is getting big, and driver for on/off LED on a
  19. i/o port is really quite different from camera flash LED, which is
  20. really different from driver for RGB color LED that can run its own
  21. microcode. Split the drivers somehow.
  22. * Figure out what to do with RGB leds
  23. Multicolor is a bit too abstract. Yes, we can have
  24. Green-Magenta-Ultraviolet LED, but so far all the LEDs we support are
  25. RGB, and not even RGB-White or RGB-Yellow variants emerged.
  26. Multicolor is not a good fit for RGB LED. It does not really know
  27. about LED color. In particular, there's no way to make LED "white".
  28. Userspace is interested in knowing "this LED can produce arbitrary
  29. color", which not all multicolor LEDs can.
  30. Proposal: let's add "rgb" to led_colors in drivers/leds/led-core.c,
  31. add corresponding device tree defines, and use that, instead of
  32. multicolor for RGB LEDs.
  33. We really need to do that now; "white" stuff can wait.
  34. RGB LEDs are quite common, and it would be good to be able to turn LED
  35. white and to turn it into any arbitrary color. It is essential that
  36. userspace is able to set arbitrary colors, and it might be good to
  37. have that ability from kernel, too... to allow full-color triggers.
  38. * Command line utility to manipulate the LEDs?
  39. /sys interface is not really suitable to use by hand, should we have
  40. an utility to perform LED control?
  41. In particular, LED names are still a mess (see above) and utility
  42. could help there by presenting both old and new names while we clean
  43. them up.
  44. In future, I'd like utility to accept both old and new names while we
  45. clean them up.
  46. It would be also nice to have useful listing mode -- name, type,
  47. current brightness/trigger...
  48. In future, it would be good to be able to set rgb led to particular
  49. color.
  50. And probably user-friendly interface to access LEDs for particular
  51. ethernet interface would be nice.