mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-15 23:05:15 +00:00
DM USB: xHCI: refine error handling logic for ctrl transfer
Under current implementation, when USB control transfer failed with Endpoint Stall error, there is no response reporting to UOS. This logic will result of timeout in UOS kernel and hence a longer enumeration process. This patch reports the Stall Error to UOS by xHCI Completion Event, which will fix this issue. Tracked-On: #1895 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
This commit is contained in:
parent
f3a7463f38
commit
c9d23d2ad7
@ -2862,8 +2862,9 @@ retry:
|
||||
}
|
||||
|
||||
err = USB_TO_XHCI_ERR(err);
|
||||
if ((err == XHCI_TRB_ERROR_SUCCESS) ||
|
||||
(err == XHCI_TRB_ERROR_SHORT_PKT)) {
|
||||
if (err == XHCI_TRB_ERROR_SUCCESS ||
|
||||
err == XHCI_TRB_ERROR_SHORT_PKT ||
|
||||
err == XHCI_TRB_ERROR_STALL) {
|
||||
err = pci_xhci_xfer_complete(xdev, xfer, slot, epid, &do_intr);
|
||||
if (err != XHCI_TRB_ERROR_SUCCESS)
|
||||
do_retry = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user