[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/5] usb-host: reset and close libusb_device_handle b
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 2/5] usb-host: reset and close libusb_device_handle before qemu exit |
Date: |
Fri, 14 Dec 2018 11:38:51 +0100 |
From: linzhecheng <address@hidden>
we should perform these things as same as usb_host_close.
Signed-off-by: linzhecheng <address@hidden>
Message-id: address@hidden
[ kraxel: whitespace fixup ]
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/host-libusb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index b6602ded4e..833250a886 100644
--- 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);
}
}
--
2.9.3
- [Qemu-devel] [PULL 0/5] Usb 20181214 patches, Gerd Hoffmann, 2018/12/14
- [Qemu-devel] [PULL 4/5] usb-mtp: use O_NOFOLLOW and O_CLOEXEC., Gerd Hoffmann, 2018/12/14
- [Qemu-devel] [PULL 1/5] pvusb: set max grants only in initialise, Gerd Hoffmann, 2018/12/14
- [Qemu-devel] [PULL 2/5] usb-host: reset and close libusb_device_handle before qemu exit,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 3/5] ehci: fix fetch qtd race, Gerd Hoffmann, 2018/12/14
- [Qemu-devel] [PULL 5/5] usb-mtp: Limit filename to object information size, Gerd Hoffmann, 2018/12/14
- Re: [Qemu-devel] [PULL 0/5] Usb 20181214 patches, Peter Maydell, 2018/12/16