diff options
| author | Hector Martin <[email protected]> | 2023-10-29 15:37:39 +0900 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2023-12-01 14:06:04 +0100 |
| commit | 2526cd993272966606cb64b1898343e6963fb1d9 (patch) | |
| tree | ca195cf3fc3cec64b229f0822b6e117d4767a02a /include | |
| parent | 8d1e03f984c7467d7c8883f15dea14b2f8b4c0e2 (diff) | |
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 <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/usb/xhci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb/xhci.h b/include/usb/xhci.h index 4a4ac10229a..04d16a256bb 100644 --- a/include/usb/xhci.h +++ b/include/usb/xhci.h @@ -901,6 +901,8 @@ union xhci_trb { /* TRB type IDs */ typedef enum { + /* reserved, used as a software sentinel */ + TRB_NONE = 0, /* bulk, interrupt, isoc scatter/gather, and control data stage */ TRB_NORMAL = 1, /* setup stage for control transfers */ |
