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:
Xiaoguang Wu
2019-03-18 10:24:00 +00:00
committed by ACRN System Integration
parent 7c79f50752
commit 8f32193d99
2 changed files with 6 additions and 46 deletions

View File

@@ -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 */
}