Blame 0145-usb-redir-Reset-device-address-and-speed-on-disconne.patch
|
Hans de Goede |
18956f |
From 442d81d00308b0145307b175a1910c7443184a3f Mon Sep 17 00:00:00 2001
|
|
Hans de Goede |
18956f |
From: Hans de Goede <hdegoede@redhat.com>
|
|
Hans de Goede |
18956f |
Date: Sat, 31 Mar 2012 13:12:09 +0200
|
|
Hans de Goede |
18956f |
Subject: [PATCH 145/146] usb-redir: Reset device address and speed on
|
|
Hans de Goede |
18956f |
disconnect
|
|
Hans de Goede |
18956f |
|
|
Hans de Goede |
18956f |
Without this disconnected devices look like the last redirected device
|
|
Hans de Goede |
18956f |
in the monitor in "info usb".
|
|
Hans de Goede |
18956f |
|
|
Hans de Goede |
18956f |
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
Hans de Goede |
18956f |
---
|
|
Hans de Goede |
18956f |
usb-redir.c | 2 ++
|
|
Hans de Goede |
18956f |
1 file changed, 2 insertions(+)
|
|
Hans de Goede |
18956f |
|
|
Hans de Goede |
18956f |
diff --git a/usb-redir.c b/usb-redir.c
|
|
Hans de Goede |
18956f |
index 3187b68..1a9d766 100644
|
|
Hans de Goede |
18956f |
--- a/usb-redir.c
|
|
Hans de Goede |
18956f |
+++ b/usb-redir.c
|
|
Hans de Goede |
18956f |
@@ -1160,6 +1160,8 @@ static void usbredir_device_disconnect(void *priv)
|
|
Hans de Goede |
18956f |
QTAILQ_INIT(&dev->endpoint[i].bufpq);
|
|
Hans de Goede |
18956f |
}
|
|
Hans de Goede |
18956f |
dev->interface_info.interface_count = NO_INTERFACE_INFO;
|
|
Hans de Goede |
18956f |
+ dev->dev.addr = 0;
|
|
Hans de Goede |
18956f |
+ dev->dev.speed = 0;
|
|
Hans de Goede |
18956f |
}
|
|
Hans de Goede |
18956f |
|
|
Hans de Goede |
18956f |
static void usbredir_interface_info(void *priv,
|
|
Hans de Goede |
18956f |
--
|
|
Hans de Goede |
18956f |
1.7.9.3
|
|
Hans de Goede |
18956f |
|