[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: USB Gen2 passthrough not working
From: |
Gerd Hoffmann |
Subject: |
Re: USB Gen2 passthrough not working |
Date: |
Fri, 15 Jan 2021 10:31:29 +0100 |
Hi,
> usb 2-3: new SuperSpeedPlus Gen 2 USB device number 3 using xhci_hcd
> localhost login: [ 72.763264] usb 1-4: new low-speed USB device number 3
> using xhci_hcd
ilibusb reports LIBUSB_SPEED_SUPER_PLUS and qemu
doesn't handle it ...
Lets treat it like superspeed for now, does that help?
--- a/hw/usb/host-libusb.c
+++ b/hw/usb/host-libusb.c
@@ -186,6 +186,7 @@ static const char *speed_name[] = {
[LIBUSB_SPEED_FULL] = "12",
[LIBUSB_SPEED_HIGH] = "480",
[LIBUSB_SPEED_SUPER] = "5000",
+ [LIBUSB_SPEED_SUPER_PLUS] = "5000+",
};
static const unsigned int speed_map[] = {
@@ -193,6 +194,7 @@ static const unsigned int speed_map[] = {
[LIBUSB_SPEED_FULL] = USB_SPEED_FULL,
[LIBUSB_SPEED_HIGH] = USB_SPEED_HIGH,
[LIBUSB_SPEED_SUPER] = USB_SPEED_SUPER,
+ [LIBUSB_SPEED_SUPER_PLUS] = USB_SPEED_SUPER,
};
static const unsigned int status_map[] = {