]> 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:50:55 +0000 (07:50 +0200)
commit8b26eb1d8bb2393d81c4af99dbe2ae35b0950d37
tree7eb247f4583886e6a56c2c565e1f3b0d3a22ac56
parent2c6a11eaec650c3c3fde42c54edc375bad5f4aac
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