mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 10:50:43 +00:00
DM USB: xHCI: fix process logic of LINK type TRB
When the LINK type TRB are received, it should not be counted as valid date block to give libusb. This patch is used to fix it. Tracked-On: #1567 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -390,7 +390,6 @@ usb_dev_prepare_xfer(struct usb_data_xfer *xfer, int *count, int *size)
|
||||
* 1. LINK trb is in the middle of trbs.
|
||||
* 2. LINK trb is a single trb.
|
||||
*/
|
||||
c++;
|
||||
block->processed = USB_XFER_BLK_HANDLED;
|
||||
idx = (idx + 1) % USB_MAX_XFER_BLOCKS;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user