From: Michal Pecio <michal.pecio@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Nikhil Solanke <nikhilsolanke5@gmail.com>,
linux-usb@vger.kernel.org, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
corbet@lwn.net, skhan@linuxfoundation.org,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v2] usbcore: Add quirk for 255-bytes initial config read
Date: Sun, 28 Jun 2026 16:50:40 +0200 [thread overview]
Message-ID: <20260628165040.76fd608d.michal.pecio@gmail.com> (raw)
In-Reply-To: <02060df3-b8c5-4a86-b3ab-3a28eea8a562@rowland.harvard.edu>
On Sun, 28 Jun 2026 09:55:07 -0400, Alan Stern wrote:
> On Sun, Jun 28, 2026 at 11:53:09AM +0530, Nikhil Solanke wrote:
> > I need some help with the USB_QUIRK_DELAY_INIT part. I can't figure
> > out how to make it properly work with my patch because of the
> > following reasons:
> >
> > 1. I don't want to move it to the top because, from my pov, there
> > must have been some reason for placing that quirk where it is now.
> > so i don't want to mess with it.
git blame is your friend:
The DELAY_INIT quirk only reduces the frequency of enumeration
failures with the Logitech HD Pro C920 and C930e webcams, but does
not quite eliminate them. We have found that adding a delay of 100ms
between the first and second Get Configuration request makes the
device enumerate perfectly reliable even after several weeks of
extensive testing. The reasons for that are anyone's guess,
> >
> > 2. Regarding my idea of adding a condition — so that it doesn't
> > change the behavior when the quirk isn't set — if the full
> > configuration set exceeds 255 bytes, we would have to issue a 2nd
> > request. In this case the existing behavior would be more justified.
> >
> > So, I'm a bit confused about how to implement this properly. Adding
> > yet another condition to fix the second case doesn't feel right to
> > me. It would look unnecessarily complicated. I would appreciate a
> > bit of help and advice.
>
> If the 255-byte quirk flag isn't set, do the delay before the second
> transfer just as it is now.
>
> If the 255-byte quirk flag is set, do the delay before the first
> transfer. If a second transfer is needed, you can do a second delay
> before it or not -- I suspect it doesn't matter. If you want to be
> safe, add the second delay.
How about "keep unrelated changes out of a stable patch", i.e. always
do the delay (if any) after the first request, regardless of size?
Regards,
Michal
next prev parent reply other threads:[~2026-06-28 14:50 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-23 16:10 [PATCH v2] usbcore: Add quirk for 255-bytes initial config read Nikhil Solanke
2026-06-23 18:35 ` Randy Dunlap
2026-06-23 19:08 ` Nikhil Solanke
2026-06-23 20:24 ` Alan Stern
2026-06-23 21:14 ` Nikhil Solanke
2026-06-24 1:35 ` Alan Stern
2026-06-24 8:06 ` Nikhil Solanke
2026-06-24 14:00 ` Alan Stern
2026-06-28 6:23 ` Nikhil Solanke
2026-06-28 13:55 ` Alan Stern
2026-06-28 14:50 ` Michal Pecio [this message]
2026-06-28 15:48 ` Alan Stern
2026-06-28 17:02 ` Michal Pecio
2026-06-28 17:22 ` Michal Pecio
2026-06-28 19:18 ` Alan Stern
2026-06-28 20:41 ` Michal Pecio
2026-06-28 16:38 ` Nikhil Solanke
2026-06-28 16:31 ` Nikhil Solanke
2026-06-28 19:21 ` Alan Stern
2026-06-25 13:56 ` Greg KH
2026-06-28 21:16 ` Michal Pecio
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=20260628165040.76fd608d.michal.pecio@gmail.com \
--to=michal.pecio@gmail.com \
--cc=corbet@lwn.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=nikhilsolanke5@gmail.com \
--cc=skhan@linuxfoundation.org \
--cc=stable@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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.