|
Pablo Greco |
e6a3ae |
From 24300291c98529f7d5a00ebdf6fdea68f8af97f5 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
e6a3ae |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Date: Wed, 14 Aug 2019 09:47:34 +0100
|
|
Pablo Greco |
e6a3ae |
Subject: [PATCH 2/3] usb-hub: clear suspend on detach
|
|
Pablo Greco |
e6a3ae |
MIME-Version: 1.0
|
|
Pablo Greco |
e6a3ae |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
e6a3ae |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Message-id: <20190814094734.18110-2-kraxel@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Patchwork-id: 89977
|
|
Pablo Greco |
e6a3ae |
O-Subject: [RHEL-8.1.0 qemu-kvm PATCH 1/1] usb-hub: clear suspend on detach
|
|
Pablo Greco |
e6a3ae |
Bugzilla: 1619661
|
|
Pablo Greco |
e6a3ae |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
Pablo Greco |
e6a3ae |
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
|
|
Pablo Greco |
e6a3ae |
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
Pablo Greco |
e6a3ae |
Message-id: 20180912114012.6034-1-kraxel@redhat.com
|
|
Pablo Greco |
e6a3ae |
(cherry picked from commit 3e9191acb797e4298adb853bf6c75cd31af47ef9)
|
|
Pablo Greco |
e6a3ae |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
Pablo Greco |
e6a3ae |
---
|
|
Pablo Greco |
e6a3ae |
hw/usb/dev-hub.c | 4 ++++
|
|
Pablo Greco |
e6a3ae |
1 file changed, 4 insertions(+)
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c
|
|
Pablo Greco |
e6a3ae |
index 752e30c..2452e88 100644
|
|
Pablo Greco |
e6a3ae |
--- a/hw/usb/dev-hub.c
|
|
Pablo Greco |
e6a3ae |
+++ b/hw/usb/dev-hub.c
|
|
Pablo Greco |
e6a3ae |
@@ -191,6 +191,10 @@ static void usb_hub_detach(USBPort *port1)
|
|
Pablo Greco |
e6a3ae |
port->wPortStatus &= ~PORT_STAT_ENABLE;
|
|
Pablo Greco |
e6a3ae |
port->wPortChange |= PORT_STAT_C_ENABLE;
|
|
Pablo Greco |
e6a3ae |
}
|
|
Pablo Greco |
e6a3ae |
+ if (port->wPortStatus & PORT_STAT_SUSPEND) {
|
|
Pablo Greco |
e6a3ae |
+ port->wPortStatus &= ~PORT_STAT_SUSPEND;
|
|
Pablo Greco |
e6a3ae |
+ port->wPortChange |= PORT_STAT_C_SUSPEND;
|
|
Pablo Greco |
e6a3ae |
+ }
|
|
Pablo Greco |
e6a3ae |
usb_wakeup(s->intr, 0);
|
|
Pablo Greco |
e6a3ae |
}
|
|
Pablo Greco |
e6a3ae |
|
|
Pablo Greco |
e6a3ae |
--
|
|
Pablo Greco |
e6a3ae |
1.8.3.1
|
|
Pablo Greco |
e6a3ae |
|