From: Jason Wessel <jason.wessel@windriver.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] USB serial device support
Date: Tue, 07 Oct 2008 15:29:05 -0500 [thread overview]
Message-ID: <48EBC691.2010803@windriver.com> (raw)
[-- 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
next reply other threads:[~2008-10-07 20:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 20:29 Jason Wessel [this message]
2008-10-08 21:22 ` [Qemu-devel] [PATCH] USB serial device support Anthony Liguori
2008-10-09 14:24 ` Jason Wessel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48EBC691.2010803@windriver.com \
--to=jason.wessel@windriver.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).