mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
DM USB: xHCI: WA for an isochronous crash issue
The current xHCI mediator doesn't well support disable endpoint command. This patch is one workaround for disable endpoint command to avoid xHCI mediator to continue handle already dropped data. Tracked-On: #2927 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -190,6 +190,15 @@ usb_dev_comp_req(struct libusb_transfer *libusb_xfer)
|
||||
|
||||
/* async transfer */
|
||||
xfer = req->xfer;
|
||||
if (xfer->magic != USB_DROPPED_XFER_MAGIC)
|
||||
/* FIXME: if magic is not what we expected, which means it is
|
||||
* reset by Disable Endpoint command, hence this xfer from
|
||||
* callback function should be discarded. This is a workaround
|
||||
* and a formal implementation for Disable Endpoint command
|
||||
* will replace this WA.
|
||||
*/
|
||||
goto out;
|
||||
|
||||
assert(xfer);
|
||||
assert(xfer->dev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user