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