From: Shahar Havivi <shaharh@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 1/2] Return usb device to host on usb_del command
Date: Wed, 16 Jun 2010 15:15:37 +0300 [thread overview]
Message-ID: <2624d3a043d5370897a326a182c5ed9c1e5f3d0a.1276689582.git.shaharh@redhat.com> (raw)
In-Reply-To: <cover.1276689582.git.shaharh@redhat.com>
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
---
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;
--
1.7.0.4
next prev parent reply other threads:[~2010-06-16 12:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 12:15 [Qemu-devel] [PATCH 0/2 v5] Release usb devices on shutdown and usb_del Shahar Havivi
2010-06-16 12:15 ` Shahar Havivi [this message]
2010-06-16 12:16 ` [Qemu-devel] [PATCH 2/2] Return usb device to host on exit Shahar Havivi
2010-06-16 13:17 ` [Qemu-devel] Re: [PATCH 0/2 v5] Release usb devices on shutdown and usb_del Gerd Hoffmann
2010-06-30 20:52 ` [Qemu-devel] " Aurelien Jarno
-- strict thread matches above, loose matches on Subject: below --
2010-06-15 18:05 [Qemu-devel] [PATCH 0/2 v4] " Shahar Havivi
2010-06-15 18:05 ` [Qemu-devel] [PATCH 1/2] Return usb device to host on usb_del command Shahar Havivi
2010-06-12 9:58 [Qemu-devel] [PATCH 0/2 v3] Release usb devices on shutdown and " Shahar Havivi
2010-06-12 9:59 ` [Qemu-devel] [PATCH 1/2] Return usb device to host on " Shahar Havivi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2624d3a043d5370897a326a182c5ed9c1e5f3d0a.1276689582.git.shaharh@redhat.com \
--to=shaharh@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).