sim-card
/
qemu
Archived
10
0
Fork 0

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: Jason Wessel <jason.wessel@windriver.com>
This commit is contained in:
Jason Wessel 2009-05-18 10:00:28 -05:00 committed by Anthony Liguori
parent 40ff16248e
commit d55ebf5539
1 changed files with 1 additions and 2 deletions

View File

@ -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