Re: Generic USB LED HID driver

Kirill Yatsenko <[email protected]>
Newsgroups org.kernelnewbies.kernelnewbies
Message-ID <CA+rTsQ6RJNZLuwm5R7Yui0=f_jjTbvbYfi_ss2NE7pm24NXg7A@mail.gmail.com>
Hello Greg,

Thanks for the suggestions!
Yes, it will be better to implement the communication from the userspace.

However, I was curious if the kernel implements some generic LED HID
interface already,
without the need to write custom code. Similarly, as it's done for example
for the HID multitouch,
where the device only needs to report the correct report descriptor.

Best regards,
Kirill Yatsenko

On Fri, 19 Jan 2024 at 12:17, Greg KH <[email protected]> wrote:

> On Fri, Jan 19, 2024 at 11:21:51AM +0100, Kirill Yatsenko wrote:
> > Hello,
> >
> > I'm trying to find the Linux kernel driver in the tree that implements
> the
> > HID LED usage table.
> > The only driver that I've found is the hid-led.c. However, it seems to
> > support only specific devices.
> >
> > The device with which I'm trying to interface is the custom-made board
> with
> > atxmega and some LEDS connected to it.
> > Currently, the communication is done through the vendor-specific HID
> > protocol.
> > The custom USB HID kernel module is implemented to communicate with the
> > device.
>
> Why not do this from userspace using libusb or the generic hid userspace
> api?  Why do you need a kernel driver?
>
> thanks,
>
> greg k-h
>

_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.