XHCI: Do not print "transfer error" for COMP_STOPPED.

STOPPED errors are generated by StopEndpoint commands, which we issue,
so presumably we expect that we will get some STOPPED errors when doing
so, thus printing these is not really necessary.
This commit is contained in:
Augustin Cavalier 2022-02-07 15:54:31 -05:00
parent 125a7abe6f
commit 312ea06980

View File

@ -2500,7 +2500,8 @@ XHCI::HandleTransferComplete(xhci_trb* trb)
transferred = -1;
}
if (completionCode != COMP_SUCCESS && completionCode != COMP_SHORT_PACKET) {
if (completionCode != COMP_SUCCESS && completionCode != COMP_SHORT_PACKET
&& completionCode != COMP_STOPPED) {
TRACE_ALWAYS("transfer error on slot %" B_PRId8 " endpoint %" B_PRId8
": %s\n", slot, endpointNumber, xhci_error_string(completionCode));
}