[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/6] usb-hub: clear suspend on detach
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 4/6] usb-hub: clear suspend on detach |
Date: |
Mon, 17 Sep 2018 11:56:16 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: 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
- [Qemu-devel] [PULL 0/6] Usb 20180917 patches, Gerd Hoffmann, 2018/09/17
- [Qemu-devel] [PULL 1/6] usb-mtp: fix error conditions for write operation, Gerd Hoffmann, 2018/09/17
- [Qemu-devel] [PULL 5/6] usb: add config options for hub and hid devices (kbd, mouse, tablet)., Gerd Hoffmann, 2018/09/17
- [Qemu-devel] [PULL 3/6] usb-mtp: reset ObjectInfo dataset size on cleanup, Gerd Hoffmann, 2018/09/17
- [Qemu-devel] [PULL 6/6] usb: assign unique serial numbers to hid devices, Gerd Hoffmann, 2018/09/17
- [Qemu-devel] [PULL 4/6] usb-hub: clear suspend on detach,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 2/6] doc: replace x-root with rootdir for usb-mtp, Gerd Hoffmann, 2018/09/17
- Re: [Qemu-devel] [PULL 0/6] Usb 20180917 patches, Peter Maydell, 2018/09/25