Skip to content

Commit 88d65ec

Browse files
fix
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
1 parent 9bc8fa7 commit 88d65ec

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

images/usb-modules/patches/001-vhci-increase-default-ports-to-32.patch renamed to images/usb-modules/patches/001-vhci-increase-ports-and-controllers.patch

File renamed without changes.
Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Patches
21

32
This directory contains patches used to build the following out-of-tree kernel modules:
43

@@ -8,8 +7,28 @@ This directory contains patches used to build the following out-of-tree kernel m
87

98
---
109

11-
## 001-vhci-increase-default-ports-to-32.patch
10+
## 001-vhci-increase-ports-and-controllers.patch
1211

13-
Increases the default number of ports for the `vhci-hcd` virtual USB controller to **32**.
12+
This patch modifies the default configuration of the `vhci-hcd` (Virtual Host Controller Interface) driver.
1413

15-
This allows more USB devices to be attached simultaneously via USB/IP
14+
### Changes
15+
16+
- Sets the number of ports per virtual hub to **16** (hardcoded).
17+
- Sets the number of virtual host controllers to **4** (hardcoded).
18+
- Removes dependency on:
19+
- `CONFIG_USBIP_VHCI_HC_PORTS`
20+
- `CONFIG_USBIP_VHCI_NR_HCS`
21+
22+
### Resulting Capacity
23+
24+
Each VHCI controller provides:
25+
- 2 hubs (USB 2.0 and USB 3.0)
26+
- 16 ports per hub
27+
28+
With 4 controllers total:
29+
30+
4 controllers × 2 hubs × 16 ports = **128 ports**
31+
32+
This allows up to **128 USB devices** to be attached simultaneously via USB/IP (subject to kernel and system limitations).
33+
34+
> Note: The number of ports and controllers is now fixed at compile time and no longer configurable via kernel config options.

0 commit comments

Comments
 (0)