mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 23:08:07 +00:00
DM USB: xHCI: refine the failure process logic of control transfer
The old logic to process control transfer failure is not complete, this patch is used to fix this issue. Tracked-On: #2824 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
7c79f50752
commit
8f32193d99
@@ -436,9 +436,10 @@ usb_dev_err_convert(int err)
|
||||
switch (err) {
|
||||
case LIBUSB_ERROR_TIMEOUT: return USB_ERR_TIMEOUT;
|
||||
case LIBUSB_ERROR_PIPE: return USB_ERR_STALLED;
|
||||
case LIBUSB_ERROR_NO_DEVICE: return USB_ERR_INVAL;
|
||||
case LIBUSB_ERROR_NO_DEVICE: return USB_ERR_IOERROR;
|
||||
case LIBUSB_ERROR_BUSY: return USB_ERR_IN_USE;
|
||||
case LIBUSB_ERROR_OVERFLOW: return USB_ERR_TOO_DEEP;
|
||||
case LIBUSB_ERROR_OVERFLOW: return USB_ERR_BAD_BUFSIZE;
|
||||
case LIBUSB_ERROR_IO: return USB_ERR_IOERROR;
|
||||
default:
|
||||
break; /* add more when required */
|
||||
}
|
||||
|
Reference in New Issue
Block a user