All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
Cc: Felipe Balbi <balbi@kernel.org>, USB list <linux-usb@vger.kernel.org>
Subject: Re: f_hid GET_REPORT extension
Date: Mon, 27 Jun 2022 09:21:20 +0200	[thread overview]
Message-ID: <YrlacG25I8bZZ1VR@kroah.com> (raw)
In-Reply-To: <CAOf5uwnJ1Z4k6NSqdLZ0UNkbWMdoYgSRecwWNHXMH24_WVZrOg@mail.gmail.com>

On Mon, Jun 27, 2022 at 09:06:05AM +0200, Michael Nazzareno Trimarchi wrote:
> Hi Felipe and Greg
> 
> I'm starting to write some code to extend the GET_REPORT and let the
> userspace on the device side to pre-fill the answer on this request.
> Right now the answer is always 0. The idea is to create a sysfs
> support to fill reports struct on report request on the host side.
> This will help to
> emulate devices that export features report for example. As far as I
> understand the hidg side just use read and write and read is used to
> extract
> the result of SET_REPORT is that the gadget is properly configured. Is
> it the right direction?

Without code, it is very hard to understand what you are doing here,
sorry.

Also, why sysfs?

thanks,

greg k-h

  reply	other threads:[~2022-06-27  7:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27  7:06 f_hid GET_REPORT extension Michael Nazzareno Trimarchi
2022-06-27  7:21 ` Greg Kroah-Hartman [this message]
2022-06-27  8:02   ` Michael Nazzareno Trimarchi
2022-06-27 11:44     ` Greg Kroah-Hartman
2022-06-27 12:08       ` Michael Nazzareno Trimarchi

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=YrlacG25I8bZZ1VR@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=balbi@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=michael@amarulasolutions.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.