OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8224fb
)
usb-host: reset and close libusb_device_handle before qemu exit
author
linzhecheng
<linzhecheng@huawei.com>
Fri, 30 Nov 2018 06:47:00 +0000
(14:47 +0800)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 10 Dec 2018 13:39:54 +0000
(14:39 +0100)
we should perform these things as same as usb_host_close.
Signed-off-by: linzhecheng <linzhecheng@huawei.com>
Message-id:
20181130064700
.5984-1-linzhecheng@huawei.com
[ kraxel: whitespace fixup ]
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
b6602de
..
833250a
100644
(file)
--- a/
hw/usb/host-libusb.c
+++ b/
hw/usb/host-libusb.c
@@
-988,7
+988,9
@@
static void usb_host_exit_notifier(struct Notifier *n, void *data)
if (s->dh) {
usb_host_release_interfaces(s);
+ libusb_reset_device(s->dh);
usb_host_attach_kernel(s);
+ libusb_close(s->dh);
}
}