From 00ff227a328f02cdb0913c51bc46457c50351c79 Mon Sep 17 00:00:00 2001 From: Shahar Havivi Date: Wed, 16 Jun 2010 15:15:37 +0300 Subject: [PATCH] Return usb device to host on usb_del command Signed-off-by: Shahar Havivi Acked-by: Gerd Hoffmann Signed-off-by: Aurelien Jarno --- usb-linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usb-linux.c b/usb-linux.c index 88273ff479..22a85e3101 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;