qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Broken USB support for Linux host


From: Bjorn Danielsson
Subject: [Qemu-devel] Broken USB support for Linux host
Date: Sun, 19 Oct 2008 20:00:16 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hello everyone, this is a bug report with a suggested patch included.

Summary: usb_host_scan() in usb-linux.c doesn't handle the logic
correctly when looking for different places to find bus/usb/devices.

Environment: qemu revision 5499 on slamd64 (slackware) 12.1

Symptom: no "host:" usb devices are available at all on any system
where /proc/bus/usb/devices exists.

Diagnosis: the else clause for the USB_FS_SYS case is wrong.

Solution:

---cut-here--------------
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;
         }

---cut-here--------------

-- 
Bjorn Danielsson  <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]