mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-18 15:28:43 +00:00
DM USB: xHCI: workaround for Stop Endpoint Command handling
This patch is one workaround to resolve a crash issue for certain brand touch screen (eGalaxTouch EXC7200-7368v1.01). The formal fix should follow the xHCI spec to stop xfer and generate transfer completed event trb prior to Stop Endpoint Command complete event trb. It should be a big change and for short term, do nothing for the stop endpoint command which is no other side effect be observed so far. Tracked-On: #1413 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:
committed by
Xie, Nanlin
parent
ecf0585bf2
commit
6a9a46ac47
@@ -168,7 +168,6 @@ struct usb_data_xfer {
|
||||
void *dev; /* struct pci_xhci_dev_emu *dev */
|
||||
int epid; /* related endpoint id */
|
||||
int pid; /* token id */
|
||||
int reset; /* detect ep reset */
|
||||
int status;
|
||||
pthread_mutex_t mtx;
|
||||
};
|
||||
@@ -219,7 +218,6 @@ enum USB_ERRCODE {
|
||||
memset((x)->data, 0, sizeof((x)->data)); \
|
||||
(x)->ndata = 0; \
|
||||
(x)->head = (x)->tail = 0; \
|
||||
(x)->reset = 1; \
|
||||
pthread_mutex_unlock((&(x)->mtx)); \
|
||||
} while (0)
|
||||
|
||||
|
Reference in New Issue
Block a user