Bug 52981

Summary: led framework cannot handle more triggers than leds
Product: Drivers Reporter: Michal Suchanek (hramrach)
Component: OtherAssignee: drivers_other
Status: NEW ---    
Severity: enhancement CC: cooloney, er.anshul.maheshwari, rpurdie
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.4.19 .. master Subsystem:
Regression: No Bisected commit-id:

Description Michal Suchanek 2013-01-24 14:26:07 UTC
The file Documentation/leds/leds-class.txt provides no hint whatsoever about the use of the leds neither from userspace nor from kernel drivers that would like to implement triggers.

Presumably the reason to implement this framework to prevent everybody implementing a led driver hiding the feature in some obscure corner of the kernel.

Now some leds features are unified in this framework but what use is that without any docs?
Comment 1 Michal Suchanek 2013-01-24 15:46:01 UTC
Well, maybe all the features that can be used are documented and are just insufficeint. At least the features usable with the current userspace interface.

There is just no way to use the LED framework in the situation when you have 4 disks and 1 led.
Comment 2 Michal Suchanek 2013-06-12 09:41:36 UTC
I looked at the led framework closely and it's not lack of documentation. The led framework just does not have code that would allow using a led as disk led when you have more than one disk controller.