qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] USB serial device support
@ 2008-10-07 20:29 Jason Wessel
  2008-10-08 21:22 ` Anthony Liguori
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Wessel @ 2008-10-07 20:29 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

Add in usb serial pass through support, based on the current usb-linux.c.

Jason.

[-- Attachment #2: usb-serial.patch --]
[-- Type: text/x-diff, Size: 930 bytes --]

From: Jason Wessel <jason.wessel@windriver.com>
Subject: [PATCH] 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>

---
 usb-linux.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/usb-linux.c
+++ b/usb-linux.c
@@ -840,8 +840,7 @@ static int usb_linux_update_endp_table(U
 
         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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-09 14:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-07 20:29 [Qemu-devel] [PATCH] USB serial device support Jason Wessel
2008-10-08 21:22 ` Anthony Liguori
2008-10-09 14:24   ` Jason Wessel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).