projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c7155
)
Return usb device to host on usb_del command
author
Shahar Havivi
<shaharh@redhat.com>
Wed, 16 Jun 2010 12:15:37 +0000
(15:15 +0300)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 30 Jun 2010 20:51:09 +0000
(22:51 +0200)
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
usb-linux.c
patch
|
blob
|
history
diff --git
a/usb-linux.c
b/usb-linux.c
index 88273ff479ad57ecdfadf8781b4829edfe8d77dc..22a85e310135650b60e6d3b533f34ceda27210a6 100644
(file)
--- 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;