[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/4] Re-attach usb device to kernel while usb_host_op
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 1/4] Re-attach usb device to kernel while usb_host_open fails |
Date: |
Fri, 17 Jul 2015 13:29:50 +0200 |
From: Lin Ma <address@hidden>
Signed-off-by: Lin Ma <address@hidden>
Reviewed-by: Gonglei <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/host-libusb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index bc2944c..11429f5 100644
--- 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;
--
1.8.3.1
- [Qemu-devel] [PULL for-2.4 0/4] usb: fixes for 2.4 (ccid, xhci and usb-host), Gerd Hoffmann, 2015/07/17
- [Qemu-devel] [PULL 3/4] usb-ccid: add missing wakeup calls, Gerd Hoffmann, 2015/07/17
- [Qemu-devel] [PULL 1/4] Re-attach usb device to kernel while usb_host_open fails,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 4/4] Revert "xhci: set timer to retry xfers", Gerd Hoffmann, 2015/07/17
- [Qemu-devel] [PULL 2/4] usb-ccid: fix 61b4887b41b270bc837ead57bc502d904af023bb, Gerd Hoffmann, 2015/07/17
- Re: [Qemu-devel] [PULL for-2.4 0/4] usb: fixes for 2.4 (ccid, xhci and usb-host), Peter Maydell, 2015/07/17