qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] USB serial device support


From: Jason Wessel
Subject: [Qemu-devel] [PATCH] USB serial device support
Date: Tue, 07 Oct 2008 15:29:05 -0500
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

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

Jason.
From: Jason Wessel <address@hidden>
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 <address@hidden>

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]