usb-linux: Get speed from sysfs rather then from the connectinfo ioctl
The connectinfo ioctl only differentiates between lo speed devices, andall other speeds, where as we would like to know the real speed. The realspeed is available in sysfs so use that when available....
usb-linux: Teach about super speed
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-linux: Don't do perror when errno is not set
Note that "op" also is not set, so before this change these error pathswould feed NULL to perror.
usb-linux: Ensure devep != 0
So that we don't index endp_table with a negative index.
usb-linux: Don't try to open the same device twice
If a user wants to redirect 2 identical usb sticks, in theory this ispossible by doing:usb_add host:1234:5678usb_add host:1234:5678
But this will lead to us trying to open the first stick twice, since we...
usb-linux: only cleanup in host_close when host_open was successful.
usb: don't call usb_host_device_open from vl.c
Not needed any more, usb-host is qdev-ified these days.Well, at least the linux version ...
usb-linux: Enlarge buffer for descriptors to 8192 bytes
1024 bytes is way to small, one hd UVC webcam I have over here has somany resolutions its descriptors take op close to 4k. Hopefully 8k willbe enough for all devices.
usb-bus: Add knowledge of USB_SPEED_SUPER to usb_speed helper
usb-bus: Don't detach non attached devices on device exit
This causes an "Error: tried to detach unattached usb device " to be printed,this can happen when deleting ie a usb host qdev, which did notget attached (because a device matching the filter never got plugged in)....
View all revisions | View revisions
Also available in: Atom