From f799e8fa1c93d414d51486fd09b4a899a437c974 Mon Sep 17 00:00:00 2001 From: Xiaoguang Wu Date: Tue, 23 Oct 2018 12:54:59 +0800 Subject: [PATCH] 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 Reviewed-by: Liang Yang Acked-by: Yu Wang --- devicemodel/hw/platform/usb_pmapper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/devicemodel/hw/platform/usb_pmapper.c b/devicemodel/hw/platform/usb_pmapper.c index 840e6654b..d8ace4e6e 100755 --- a/devicemodel/hw/platform/usb_pmapper.c +++ b/devicemodel/hw/platform/usb_pmapper.c @@ -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;