From: "Michał Pecio" <michal.pecio@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mathias Nyman <mathias.nyman@intel.com>,
Minas Harutyunyan <hminas@synopsys.com>,
Linus Walleij <linus.walleij@linaro.org>,
Alan Stern <stern@rowland.harvard.edu>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] usb: hcd: Add a usb_device argument to hc_driver.endpoint_reset()
Date: Wed, 16 Apr 2025 08:29:58 +0200 [thread overview]
Message-ID: <20250416082958.20c34504@foxbook> (raw)
In-Reply-To: <2025041508-rockslide-endpoint-a48b@gregkh>
On Tue, 15 Apr 2025 14:26:26 +0200, Greg Kroah-Hartman wrote:
> > This fixes a 6.15-rc1 regression reported by Paul, which I was able
> > to reproduce, where xhci_hcd doesn't handle endpoint_reset() after
> > endpoint_disable() not followed by add_endpoint(). If a configured
> > device is reset, stalling endpoints start to get stuck permanently.
>
> As this fixes a bug, can you add a Fixes: tag with the needed
> information?
Hi Greg,
Sorry for bothering you, the real bug is that I forgot to carry over
the RFC tag from v1.
The 6.15 regression is currently solved by reverts Mathias sent you.
The underlying bug is much older, I would have to research where it
went wrong exactly. It was very obscure; a class driver would need to:
1. call usb_set_interface(), usb_reset_device() or something like that
2. submit some URBs to make the toggle/sequence state non-zero
3. call usb_clear_halt() on a not yet halted endpoint
Then the host endpoint wouldn't be reset, but the device would.
I know of drivers which do 1 and 2 or even 2 and 3, but I have not
yet encountered a driver doing all three in this order.
Regards,
Michal
next prev parent reply other threads:[~2025-04-16 6:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-15 9:10 [PATCH v2] usb: hcd: Add a usb_device argument to hc_driver.endpoint_reset() Michal Pecio
2025-04-15 12:26 ` Greg Kroah-Hartman
2025-04-16 6:29 ` Michał Pecio [this message]
2025-04-16 6:50 ` Greg Kroah-Hartman
2025-04-17 8:54 ` Mathias Nyman
2025-04-17 9:34 ` Michał 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=20250416082958.20c34504@foxbook \
--to=michal.pecio@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hminas@synopsys.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--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 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).