From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsKC1-0008MJ-0E for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:34:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsKBy-0008K6-NV for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:34:48 -0400 Received: from [199.232.76.173] (port=54355 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsKBy-0008JZ-AS for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:34:46 -0400 Received: from qw-out-1920.google.com ([74.125.92.148]:19952) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsKBy-0003zC-68 for qemu-devel@nongnu.org; Tue, 21 Oct 2008 12:34:46 -0400 Received: by qw-out-1920.google.com with SMTP id 5so716848qwc.4 for ; Tue, 21 Oct 2008 09:34:44 -0700 (PDT) Message-ID: <48FE04A0.4000902@codemonkey.ws> Date: Tue, 21 Oct 2008 11:34:40 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Fix broken USB support for Linux host References: <48FDDB79.20901@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Bjorn Danielsson wrote: > Make "host:" usb devices work again on systems that have the > file /proc/bus/usb/devices. This was broken in r5441 due to > incorrect logic for the USB_FS_SYS case in usb_host_scan(). > > Signed-off-by: Bjorn Danielsson > Applied. Thanks. Regards, Anthony Liguori > Index: usb-linux.c > =================================================================== > --- usb-linux.c (revision 5499) > +++ usb-linux.c (working copy) > @@ -1293,7 +1293,8 @@ > usb_fs_type = USB_FS_SYS; > closedir(dir); > dprintf(opened, USBSYSBUS_PATH, devices); > - } else { > + } > + if (!usb_fs_type) { > term_printf("husb: unable to access USB devices\n"); > goto the_end; > } > > >