[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/5] usb-hub: clear suspend on detach
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 4/5] usb-hub: clear suspend on detach |
Date: |
Mon, 1 Oct 2018 11:28:47 +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/5] Usb 20181001 patches, Gerd Hoffmann, 2018/10/01
- [Qemu-devel] [PULL 4/5] usb-hub: clear suspend on detach,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 1/5] usb-mtp: fix error conditions for write operation, Gerd Hoffmann, 2018/10/01
- [Qemu-devel] [PULL 5/5] ohci: set effectively usb frame rate to 1kHz, Gerd Hoffmann, 2018/10/01
- [Qemu-devel] [PULL 3/5] usb-mtp: reset ObjectInfo dataset size on cleanup, Gerd Hoffmann, 2018/10/01
- [Qemu-devel] [PULL 2/5] doc: replace x-root with rootdir for usb-mtp, Gerd Hoffmann, 2018/10/01
- Re: [Qemu-devel] [PULL 0/5] Usb 20181001 patches, Peter Maydell, 2018/10/01