Skip to content

Commit 08b99af

Browse files
fix
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
1 parent e97e641 commit 08b99af

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

images/usb-modules/build.sh

100644100755
File mode changed.
Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
--- drivers/usb/usbip/vhci.h
22
+++ drivers/usb/usbip/vhci.h
3-
@@ -76,7 +76,7 @@
4-
#ifdef CONFIG_USBIP_VHCI_HC_PORTS
5-
#define VHCI_HC_PORTS CONFIG_USBIP_VHCI_HC_PORTS
6-
#else
3+
@@ -73,19 +73,11 @@ enum hub_speed {
4+
};
5+
6+
/* Number of supported ports. Value has an upperbound of USB_MAXCHILDREN */
7+
-#ifdef CONFIG_USBIP_VHCI_HC_PORTS
8+
-#define VHCI_HC_PORTS CONFIG_USBIP_VHCI_HC_PORTS
9+
-#else
710
-#define VHCI_HC_PORTS 8
11+
-#endif
812
+#define VHCI_HC_PORTS 32
9-
#endif
1013

1114
/* Each VHCI has 2 hubs (USB2 and USB3), each has VHCI_HC_PORTS ports */
15+
#define VHCI_PORTS (VHCI_HC_PORTS*2)
16+
17+
-#ifdef CONFIG_USBIP_VHCI_NR_HCS
18+
-#define VHCI_NR_HCS CONFIG_USBIP_VHCI_NR_HCS
19+
-#else
20+
-#define VHCI_NR_HCS 1
21+
-#endif
22+
+#define VHCI_NR_HCS 1
23+
24+
#define MAX_STATUS_NAME 16

0 commit comments

Comments
 (0)