<div dir="ltr">Hello Greg,<div><br></div><div>Thanks for the suggestions!</div><div>Yes, it will be better to implement the communication from the userspace.</div><div><br></div><div>However, I was curious if the kernel implements some generic LED HID interface already,</div><div>without the need to write custom code. Similarly, as it's done for example for the HID multitouch,</div><div>where the device only needs to report the correct report descriptor.</div><div><br></div><div>Best regards,<br>Kirill Yatsenko</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 19 Jan 2024 at 12:17, Greg KH <<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Jan 19, 2024 at 11:21:51AM +0100, Kirill Yatsenko wrote:<br>
> Hello,<br>
> <br>
> I'm trying to find the Linux kernel driver in the tree that implements the<br>
> HID LED usage table.<br>
> The only driver that I've found is the hid-led.c. However, it seems to<br>
> support only specific devices.<br>
> <br>
> The device with which I'm trying to interface is the custom-made board with<br>
> atxmega and some LEDS connected to it.<br>
> Currently, the communication is done through the vendor-specific HID<br>
> protocol.<br>
> The custom USB HID kernel module is implemented to communicate with the<br>
> device.<br>
<br>
Why not do this from userspace using libusb or the generic hid userspace<br>
api? Why do you need a kernel driver?<br>
<br>
thanks,<br>
<br>
greg k-h<br>
</blockquote></div>