From patchwork Sat Jun 12 09:59:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/2] Return usb device to host on usb_del command Date: Fri, 11 Jun 2010 23:59:25 -0000 From: Shahar Havivi X-Patchwork-Id: 55384 Message-Id: <825e9ab2f3f824e6523078b6af0686ca54e37d04.1276335589.git.shaharh@redhat.com> To: qemu-devel@nongnu.org Signed-off-by: Shahar Havivi --- usb-linux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 88273ff..22a85e3 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -991,6 +991,7 @@ static int usb_host_close(USBHostDevice *dev) async_complete(dev); dev->closing = 0; usb_device_detach(&dev->dev); + ioctl(dev->fd, USBDEVFS_RESET); close(dev->fd); dev->fd = -1; return 0;