projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d5ee9e
)
Re-attach usb device to kernel while usb_host_open fails
author
Lin Ma
<lma@suse.com>
Wed, 24 Jun 2015 05:40:11 +0000
(13:40 +0800)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 16 Jul 2015 15:39:13 +0000
(17:39 +0200)
Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/host-libusb.c
patch
|
blob
|
history
diff --git
a/hw/usb/host-libusb.c
b/hw/usb/host-libusb.c
index bc2944c6b2dd1e2945aa9e53a3e1612e552daeda..11429f5e731505844e0b61ba12aae435b06f5533 100644
(file)
--- a/
hw/usb/host-libusb.c
+++ b/
hw/usb/host-libusb.c
@@
-889,6
+889,9
@@
static int usb_host_open(USBHostDevice *s, libusb_device *dev)
fail:
trace_usb_host_open_failure(bus_num, addr);
if (s->dh != NULL) {
+ usb_host_release_interfaces(s);
+ libusb_reset_device(s->dh);
+ usb_host_attach_kernel(s);
libusb_close(s->dh);
s->dh = NULL;
s->dev = NULL;