From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7bkr-0008Bb-No for qemu-devel@nongnu.org; Tue, 23 Jun 2015 23:53:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7bkn-0005nR-Gn for qemu-devel@nongnu.org; Tue, 23 Jun 2015 23:53:41 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:5133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7bkm-0005nH-VJ for qemu-devel@nongnu.org; Tue, 23 Jun 2015 23:53:37 -0400 Message-ID: <558A29A9.8030101@huawei.com> Date: Wed, 24 Jun 2015 11:53:13 +0800 From: Gonglei MIME-Version: 1.0 References: <1435117141-10459-1-git-send-email-lma@suse.com> In-Reply-To: <1435117141-10459-1-git-send-email-lma@suse.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V1] Re-attach usb device to kernel while usb_host_open fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lin Ma , qemu-devel@nongnu.org, kraxel@redhat.com On 2015/6/24 11:39, Lin Ma wrote: > Changes in V1: > For avoiding regression issue, Dont remove the usb device from global hostdevs list while > usb speed mismatch occurs. > > Signed-off-by: Lin Ma > --- The changing remarks should be lay up here, and use v2 suffix instead of v1. If you do this, you can add my R-by. Reviewed-by: Gonglei Please refer to: http://wiki.qemu.org/Contribute/SubmitAPatch Regards, -Gonglei > hw/usb/host-libusb.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c > index bc2944c..11429f5 100644 > --- a/hw/usb/host-libusb.c > +++ b/hw/usb/host-libusb.c > @@ -889,6 +889,9 @@ static int usb_host_open(USBHostDevice *s, libusb_device *dev) > fail: > trace_usb_host_open_failure(bus_num, addr); > if (s->dh != NULL) { > + usb_host_release_interfaces(s); > + libusb_reset_device(s->dh); > + usb_host_attach_kernel(s); > libusb_close(s->dh); > s->dh = NULL; > s->dev = NULL; >