|
| From: | Bjorn Danielsson |
| Subject: | Re: [Qemu-devel] [PATCH] Fix broken USB support for Linux host |
| Date: | Tue, 21 Oct 2008 17:53:30 +0200 |
| User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
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 <address@hidden>
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;
}
| [Prev in Thread] | Current Thread | [Next in Thread] |