提交 d55ebf55 编写于 作者: J Jason Wessel 提交者: Anthony Liguori

USB serial device support

Add in a workaround to allow the usb serial devices to work with the
usb pass through mechanism.  The ioctl() to request an alternate
interface will always return < 0 for a usb-serial device based on the
kernel driver.  This means there is no alternate interface end point.

This was fully tested with a pl2303 usb serial device.
Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
上级 40ff1624
......@@ -833,8 +833,7 @@ static int usb_linux_update_endp_table(USBHostDevice *s)
ret = ioctl(s->fd, USBDEVFS_CONTROL, &ct);
if (ret < 0) {
perror("usb_linux_update_endp_table");
return 1;
alt_interface = interface;
}
/* the current interface descriptor is the active interface
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册