peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0145-usb-redir-Reset-device-address-and-speed-on-disconne.patch

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