mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 19:30:46 +00:00
DM USB: xHCI: limit bus and port numbers of xHCI
Currently the maximum number of bus and port for xHCI are both set to 255, it is theoretically possible but in fact not neccessary. This patch changes those two values to be more proper: 4 buses and 20 ports. 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:
@@ -223,8 +223,8 @@ enum USB_ERRCODE {
|
||||
#define NATIVE_USBSYS_DEVDIR "/sys/bus/usb/devices"
|
||||
#define NATIVE_USB2_SPEED "480"
|
||||
#define NATIVE_USB3_SPEED "5000"
|
||||
#define USB_NATIVE_NUM_PORT 255
|
||||
#define USB_NATIVE_NUM_BUS 255
|
||||
#define USB_NATIVE_NUM_PORT 20
|
||||
#define USB_NATIVE_NUM_BUS 4
|
||||
|
||||
extern int usb_log_level;
|
||||
inline int usb_get_log_level(void) { return usb_log_level; }
|
||||
|
Reference in New Issue
Block a user