Skip to content
Commit 2526cd99 authored by Hector Martin's avatar Hector Martin Committed by Marek Vasut
Browse files

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: default avatarHector Martin <marcan@marcan.st>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
parent 8d1e03f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment