Skip to content

usb-linux do not send unnecessary GET_CONFIGURATION

Hans de Goede qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb-linux: Store devpath into USBHostDevice when usb_fs_type == USB_FS_SYSusb-linux.c+19 -102 replies
2/3usb-linux: introduce a usb_linux_get_configuration functionusb-linux.c+22 -80 replies
3/3usb-linux: Get the active configuration from sysfs rather then asking the devusb-linux.c+19 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGerd Hoffmann
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] usb-linux do not send unnecessary GET_CONFIGURATION

Hi All,

First a short self-into. I've been a FOSS developer for 10+ years, working on a large variety of projects. Most relevant for my appearing here on the qemu list is my experience in reverse engineering and writing usb webcam drivers for the Linux kernel and libgphoto2 camlibs for various small usb keychain picture frames (with proprietary protocols).

I've been a Red Hat employee for 2 years now and in August this year I've joined Red Hat's SPICE team. I'm currently tasked with looking into / developing an usb redirection solution for SPICE. So for starters I've begun looking into the current usb redirection support in qemu.

It failed at the first device I threw at it (a usb keychain picture frame), the problem is that this (el cheapo) device does not seem to grok GET_CONFIGURATION. This patch sets makes this device work (and stops qemu from unnecessary sending a GET_CONFIGURATION ctrl msg in general) by reading this value directly from sysfs.

Regards,

Hans

p.s.

While looking at the code I also noticed that the ep numeration in usb-linux seems completely wrong for multifunction devices. I'll go test that and fix it (assuming I'm right about it being wrong) tomorrow.