]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: Better error handling in abort_td()
authorHector Martin <marcan@marcan.st>
Sun, 29 Oct 2023 06:37:39 +0000 (15:37 +0900)
committerMarek Vasut <marex@denx.de>
Fri, 1 Dec 2023 13:06:04 +0000 (14:06 +0100)
commit2526cd993272966606cb64b1898343e6963fb1d9
treeca195cf3fc3cec64b229f0822b6e117d4767a02a
parent8d1e03f984c7467d7c8883f15dea14b2f8b4c0e2
usb: xhci: Better error handling in abort_td()

If the xHC has a problem with our STOP ENDPOINT command, it is likely to
return a completion directly instead of first a transfer event for the
in-progress transfer. Handle that more gracefully.

We still BUG() on the error code, but at least we don't end up timing
out on the event and ending up with unexpected event errors.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/xhci-ring.c
include/usb/xhci.h