From: Hans de Goede <hdegoede@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Hans de Goede <hdegoede@redhat.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 2/3] usb-redir: Reset device address and speed on disconnect
Date: Sat, 31 Mar 2012 17:14:22 +0200 [thread overview]
Message-ID: <1333206863-11425-2-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1333206863-11425-1-git-send-email-hdegoede@redhat.com>
Without this disconnected devices look like the last redirected device
in the monitor in "info usb".
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
hw/usb/redirect.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index 9cea7c1..11d3b2b 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -1134,6 +1134,8 @@ static void usbredir_device_disconnect(void *priv)
}
usb_ep_init(&dev->dev);
dev->interface_info.interface_count = NO_INTERFACE_INFO;
+ dev->dev.addr = 0;
+ dev->dev.speed = 0;
}
static void usbredir_interface_info(void *priv,
--
1.7.9.3
next prev parent reply other threads:[~2012-03-31 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-31 15:14 [Qemu-devel] [PATCH 1/3] usb-redir: An interface count of 0 is a valid value Hans de Goede
2012-03-31 15:14 ` Hans de Goede [this message]
2012-03-31 15:14 ` [Qemu-devel] [PATCH 3/3] usb-redir: Not finding an async urb id is not an error Hans de Goede
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=1333206863-11425-2-git-send-email-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=kraxel@redhat.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).