From: Greg KH <greg@kroah.com>
To: Peter Korsgaard <peter@korsgaard.com>
Cc: "Vodicka, Michal" <michal.vodicka@hidglobal.com>,
"balbi@kernel.org" <balbi@kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"Vrastil, Michal" <michal.vrastil@hidglobal.com>,
"stable@kernel.org" <stable@kernel.org>
Subject: Re: [PATCH] Revert "usb: gadget: composite: fix OS descriptors w_value
Date: Fri, 4 Oct 2024 15:33:16 +0200 [thread overview]
Message-ID: <2024100457-able-sake-47fd@gregkh> (raw)
In-Reply-To: <5f8cdcac-6927-429a-8ef5-0891c90e8efd@korsgaard.com>
On Fri, Sep 13, 2024 at 05:39:21PM +0200, Peter Korsgaard wrote:
> On 9/11/24 03:32, Vodicka, Michal wrote:
> > > Hmm, very odd. How are you testing this on the host side?
> >
> > We just attach the device and check the registry values created by OS
> > for our device. As
> > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_XXXX&PID_YYYY&MI_NN\<device_instance>\Device Parameters.
> > When it works our extended properties are created there.
> >
> > We check the communication using USB analyzer which clearly shows
> > wValue bytes are in opposite order than documented. This is SETUP
> > packet captured:
> >
> > Offset 0 1 2 3 4 5 6 7
> > 0x000 C1 A1 02 00 05 00 0A 00
> >
> > As you can see, this is interface request and out interface number was
> > 2 which is in the low byte of wValue.
>
> OK, annoying. I am traveling for conferences this/next week so I cannot
> verify here, but presumably you are correct. Do you perhaps have a more
> complete capture you can share?
>
>
> >
> > > Could it be that you are running into the WinUSB bug described here:
> >
> > No. The mentioned bug is in wIndex and out problem is wValue. Also,
> > MSOS descriptors are read before WinUsb is even run.
>
> Ahh yes, indeed.
>
>
> > What Windows version were you using and have you used USB analyzer to
> > check the communication?
>
> It's been a while, but I believe Windows 10. In the end I ended up shuffling
> the interfaces around so the one with the MSOS descriptors was interface 0
> for better compatibility, so it is possible that something went wrong with
> my interface != 0 tests.
>
> If so, then I am fine with reverting, but we should probably add a comment
> explaining that the documentation is wrong.
Ok, Michal, can you add some text tothe changelog and send a v2 for
this?
thanks,
greg k-h
next prev parent reply other threads:[~2024-10-04 13:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 1:32 [PATCH] Revert "usb: gadget: composite: fix OS descriptors w_value Vodicka, Michal
2024-09-13 15:39 ` Peter Korsgaard
2024-09-20 2:26 ` [EXT] " Vodicka, Michal
2024-10-04 13:33 ` Greg KH [this message]
2024-10-16 23:55 ` Elson Serrao
2024-11-12 18:11 ` Elson Serrao
2024-11-13 0:29 ` [EXT] " Vrastil, Michal
2024-11-13 1:38 ` Vodicka, Michal
2024-11-13 13:01 ` Peter Korsgaard
[not found] <AS8PR05MB84857AB3DC49395AEC7C235990932@AS8PR05MB8485.eurprd05.prod.outlook.com>
2024-09-04 15:01 ` Vrastil, Michal
2024-09-04 17:18 ` Greg KH
2024-09-04 17:31 ` Sergei Shtylyov
2024-09-04 18:19 ` Peter Korsgaard
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=2024100457-able-sake-47fd@gregkh \
--to=greg@kroah.com \
--cc=balbi@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=michal.vodicka@hidglobal.com \
--cc=michal.vrastil@hidglobal.com \
--cc=peter@korsgaard.com \
--cc=stable@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 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.