From: Felipe Balbi <balbi@kernel.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linux-usb@vger.kernel.org
Subject: Re: [PATCH] [RFC] usb: gadget: hid: Add "single_ep" option
Date: Fri, 09 Aug 2019 12:32:32 +0300 [thread overview]
Message-ID: <87ef1un0pb.fsf@gmail.com> (raw)
In-Reply-To: <146d724c5df6b6e9a98f9d1d69a85be23eed0311.camel@kernel.crashing.org>
Hi,
Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
> On Fri, 2019-08-09 at 11:08 +0300, Felipe Balbi wrote:
>>
>> that works too. Another option would to introduce two options,
>> has_input_report and has_output_report and have them true by default.
>>
>> Then user can even produce an output-only HID device, like these odd
>> USB-controlled relays.
>
> Ideally we could just parse the descriptor :-) But that's a bit
> trickier.
>
> One thing I've been meaning to look at is a way to properly handle
> keyboards (and other "on/off" buttons) by having the kernel latch the
> state so it can properly respond to things like get report, or resend
> all the "down" keys after a reset (so that things like "keep some key
> pressed during boot for magic to happen") actually works...
cool idea
> But one thing at a time :-)
yup
--
balbi
prev parent reply other threads:[~2019-08-09 9:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-09 4:05 [PATCH] [RFC] usb: gadget: hid: Add "single_ep" option Benjamin Herrenschmidt
2019-08-09 5:31 ` Felipe Balbi
2019-08-09 6:36 ` Benjamin Herrenschmidt
2019-08-09 8:08 ` Felipe Balbi
2019-08-09 8:20 ` Benjamin Herrenschmidt
2019-08-09 9:32 ` Felipe Balbi [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=87ef1un0pb.fsf@gmail.com \
--to=balbi@kernel.org \
--cc=benh@kernel.crashing.org \
--cc=linux-usb@vger.kernel.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 NNTP newsgroup(s).