mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-15 22:09:06 +00:00
DM USB: xHCI: workaround for libusb timing issue
On some platforms, the VBus will drop after suspending is done, hence a disconnect and re-connect for device connected before suspending will be triggered in DM. But during the stress test, when the free memory is limited to very low level, and put huge workload to SOS, under certain possibility, the DM will receive re-connect event first and disconnect event later, this behavior will result of failing to emulate USB device to UOS. The reason is due to a timing issue from libusb. Before we could upstream fixing patch to libusb or find some other better solution, this workaround patch will be used to avoid errors happen. Tracked-On: #2823 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
66dabd1260
commit
7c79f50752
@@ -597,7 +597,7 @@ usb_dev_native_toggle_if_drivers(struct usb_dev *udev, int attach)
|
||||
return -1;
|
||||
}
|
||||
|
||||
UPRINTF(LDBG, "%s driver\r\n", attach == 1 ? "attach" : "detach");
|
||||
UPRINTF(LINF, "%s driver\r\n", attach == 1 ? "attach" : "detach");
|
||||
|
||||
c = config->bConfigurationValue;
|
||||
for (i = 0; i < config->bNumInterfaces; i++) {
|
||||
|
Reference in New Issue
Block a user