]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Fri, 24 Mar 2023 20:29:28 +0000 (13:29 -0700)
committerKaty Feng <fkaty@vmware.com>
Fri, 24 Mar 2023 20:29:28 +0000 (13:29 -0700)
open-vm-tools/lib/include/vm_device_version.h

index 247a969c68b7316a83f275605b157b7d0d16c7f5..0b7ee5694f0acf3cc1822f8e29c6806887bde012 100644 (file)
 /************* 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