]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: xhci: Avoid Stop Endpoint retry loop if the endpoint seems Running
authorMichal Pecio <michal.pecio@gmail.com>
Tue, 11 Mar 2025 15:45:51 +0000 (17:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:35 +0000 (07:44 +0200)
commit3a259d74f57a255eb09b38dc250a5db40f1e3acc
tree12843e31aea0d88178eecc950008021f7b0e5bd0
parent0725a991727dd732062faa19e511d848a9fc8f84
usb: xhci: Avoid Stop Endpoint retry loop if the endpoint seems Running

[ Upstream commit 28a76fcc4c85dd39633fb96edb643c91820133e3 ]

Nothing prevents a broken HC from claiming that an endpoint is Running
and repeatedly rejecting Stop Endpoint with Context State Error.

Avoid infinite retries and give back cancelled TDs.

No such cases known so far, but HCs have bugs.

Signed-off-by: Michal Pecio <michal.pecio@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250311154551.4035726-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/xhci-ring.c