Skip to content

Commit

Permalink
Accept USB 3.2 Gen 2x2 (20Gbps) speed
Browse files Browse the repository at this point in the history
Attach it as USB 3.1, until USBIP gets support for higher speed.

Fixes QubesOS/qubes-issues#9587
  • Loading branch information
marmarek committed Nov 19, 2024
1 parent fc8806b commit 814240b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/usb-import
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ case "$untrusted_speed" in
480) speed=3 ;; # High Speed
53.3-480) speed=4 ;; # Wireless
5000) speed=5 ;; # Super Speed
10000) speed=$max_supported_speed ;; # Super Speed Plus (USB 3.1); Announce as USB 3.0 until USBIP get support
10000) speed=$max_supported_speed ;; # Super Speed Plus (USB 3.1)
20000) speed=$max_supported_speed ;; # Super Speed Gen 2x2; Announce as USB 3.1 until USBIP get support
*) ERROR "Invalid speed \"$untrusted_speed\" received." \
"Expected \"1.5\", \"12\", \"480\", \"53.3-480\", \"5000\", \"10000\". " \
"Expected \"1.5\", \"12\", \"480\", \"53.3-480\", \"5000\", \"10000\", \"20000\". " \
"If the remote side sent nothing, this could mean "\
" - the device is invalid or unplugged" \
" - the VM crashed" \
Expand Down

0 comments on commit 814240b

Please sign in to comment.