Kernel Newbies archive mirror
 help / color / mirror / Atom feed
From: Kirill Yatsenko <kirill31051997f@gmail.com>
To: Greg KH <greg@kroah.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: Generic USB LED HID driver
Date: Fri, 19 Jan 2024 13:40:04 +0100	[thread overview]
Message-ID: <CA+rTsQ6+yoG6t8itMeCfwX0yakAwX13dAFBJziZnzF6DsuROTQ@mail.gmail.com> (raw)
In-Reply-To: <2024011912-flask-jawless-e8e4@gregkh>


[-- Attachment #1.1: Type: text/plain, Size: 1552 bytes --]

> > 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.

> I do not think there is a generic HID description yet, is there?  If so,
> the kernel should support it, otherwise it is all vendor-specific stuff
> that belongs in userspace.

Thanks again for your answer.
There is "LED Page" defined in HID Usage Tables. However, I can't find any
drivers that implement it.

But maybe I'm looking in the wrong direction.

Best regards,
Kirill Yatsenko



On Fri, 19 Jan 2024 at 13:07, Greg KH <greg@kroah.com> wrote:

> On Fri, Jan 19, 2024 at 12:45:52PM +0100, Kirill Yatsenko wrote:
> > 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.
>
> I do not think there is a generic HID description yet, is there?  If so,
> the kernel should support it, otherwise it is all vendor-specific stuff
> that belongs in userspace.
>
> thanks,
>
> greg k-h
>

[-- Attachment #1.2: Type: text/html, Size: 2134 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2024-01-19 12:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19 10:21 Generic USB LED HID driver Kirill Yatsenko
2024-01-19 11:17 ` Greg KH
2024-01-19 11:45   ` Kirill Yatsenko
2024-01-19 12:07     ` Greg KH
2024-01-19 12:40       ` Kirill Yatsenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+rTsQ6+yoG6t8itMeCfwX0yakAwX13dAFBJziZnzF6DsuROTQ@mail.gmail.com \
    --to=kirill31051997f@gmail.com \
    --cc=greg@kroah.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).