mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +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:
@@ -160,6 +160,7 @@ struct usb_data_xfer_block {
|
||||
};
|
||||
|
||||
struct usb_data_xfer {
|
||||
uint64_t magic;
|
||||
struct usb_data_xfer_block data[USB_MAX_XFER_BLOCKS];
|
||||
struct usb_device_request *ureq; /* setup ctl request */
|
||||
int ndata; /* # of data items */
|
||||
@@ -242,6 +243,8 @@ enum USB_ERRCODE {
|
||||
#define USB_NATIVE_NUM_PORT 20
|
||||
#define USB_NATIVE_NUM_BUS 4
|
||||
|
||||
#define USB_DROPPED_XFER_MAGIC 0xaaaaaaaa55555555
|
||||
|
||||
extern int usb_log_level;
|
||||
static inline int usb_get_log_level(void) { return usb_log_level; }
|
||||
static inline void usb_set_log_level(int level) { usb_log_level = level; }
|
||||
|
Reference in New Issue
Block a user