[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] usb-hub: clear suspend on detach
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH] usb-hub: clear suspend on detach |
Date: |
Wed, 12 Sep 2018 13:40:12 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/dev-hub.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c
index 5d9743ef93..dc368179d1 100644
--- a/hw/usb/dev-hub.c
+++ b/hw/usb/dev-hub.c
@@ -191,6 +191,10 @@ static void usb_hub_detach(USBPort *port1)
port->wPortStatus &= ~PORT_STAT_ENABLE;
port->wPortChange |= PORT_STAT_C_ENABLE;
}
+ if (port->wPortStatus & PORT_STAT_SUSPEND) {
+ port->wPortStatus &= ~PORT_STAT_SUSPEND;
+ port->wPortChange |= PORT_STAT_C_SUSPEND;
+ }
usb_wakeup(s->intr, 0);
}
--
2.9.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] usb-hub: clear suspend on detach,
Gerd Hoffmann <=