提交 22babebb 编写于 作者: A aliguori

Fix broken USB support for Linux host (Bjorn Danielsson)

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: NBjorn Danielsson <bdq@dax.nu>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5507 c046a42c-6fe2-441c-8c8c-71466251a162
上级 26d67362
......@@ -1293,7 +1293,8 @@ static int usb_host_scan(void *opaque, USBScanFunc *func)
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册