diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-22 11:47:02 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-05-29 07:03:56 +0200 |
| commit | bfe44898848614cfcb3a269bc965afbe1f0f331c (patch) | |
| tree | 7cd12d77f2e11738af3abf017aaf2c062d089edb /hw/usb/dev-hub.c | |
| parent | 65f14ab98da1da920f98ee8734dc1588b01d6b2b (diff) | |
| download | focaccia-qemu-bfe44898848614cfcb3a269bc965afbe1f0f331c.tar.gz focaccia-qemu-bfe44898848614cfcb3a269bc965afbe1f0f331c.zip | |
usb-host: avoid libusb_set_configuration calls
Seems some devices become confused when we call libusb_set_configuration(). So before calling the function check whenever the device has multiple configurations in the first place, and in case it hasn't (which is the case for the majority of devices) simply skip the call as it will have no effect anyway. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20190522094702.17619-4-kraxel@redhat.com
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions