Commit d55ebf5539139b26b9c6412a834cb493f008a8a9
Committed by
Anthony Liguori
1 parent
40ff1624
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>
Showing
1 changed file
with
1 additions
and
2 deletions
usb-linux.c
... | ... | @@ -833,8 +833,7 @@ static int usb_linux_update_endp_table(USBHostDevice *s) |
833 | 833 | |
834 | 834 | ret = ioctl(s->fd, USBDEVFS_CONTROL, &ct); |
835 | 835 | if (ret < 0) { |
836 | - perror("usb_linux_update_endp_table"); | |
837 | - return 1; | |
836 | + alt_interface = interface; | |
838 | 837 | } |
839 | 838 | |
840 | 839 | /* the current interface descriptor is the active interface | ... | ... |