From: Katy Feng Date: Fri, 24 Mar 2023 20:29:28 +0000 (-0700) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.3.0~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a9a730985ff05bcb808e68e4526856bb77a4c17;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_device_version.h b/open-vm-tools/lib/include/vm_device_version.h index 247a969c6..0b7ee5694 100644 --- a/open-vm-tools/lib/include/vm_device_version.h +++ b/open-vm-tools/lib/include/vm_device_version.h @@ -362,7 +362,19 @@ /************* USB host controller limits ********************/ #define USB_EHCI_MAX_CONTROLLERS 1 #define USB_XHCI_MAX_CONTROLLERS 1 -#define USB_MAX_DEVICES_PER_HOST_CTRL 20 + +/* + * As per USB specification 127 devices can be connected. Along with user usb + * devices other types of devices like root hub, hub, keyboard, mouse are also + * present and are not expose directly to users. These other devices also + * occupy ports on USB. + * + * Although we have 20 devices limit for virtual usb mass storage on each + * controller we can't just put 20 here as we need to account for other devices + * which are necessary for functionality + * TODO: enforce 20 devices limit from hostd + */ +#define USB_MAX_DEVICES_PER_HOST_CTRL 127 /************* Strings for Host USB Driver *******************************/ #ifdef _WIN32