[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/7] usb-hub: wakeup on detach too.
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 3/7] usb-hub: wakeup on detach too. |
Date: |
Wed, 23 Nov 2011 18:25:13 +0100 |
When detaching devices from the usb hub we must wakeup too,
otherwise the host misses the detach event.
Commit 4a33a9ea06f6fbb08d8311a7cfed72975344f9ab does the
same for device attach.
Found by address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb-hub.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/usb-hub.c b/hw/usb-hub.c
index 3eb0f1a..5b48763 100644
--- a/hw/usb-hub.c
+++ b/hw/usb-hub.c
@@ -171,6 +171,8 @@ static void usb_hub_detach(USBPort *port1)
USBHubState *s = port1->opaque;
USBHubPort *port = &s->ports[port1->index];
+ usb_wakeup(&s->dev);
+
/* Let upstream know the device on this port is gone */
s->dev.port->ops->child_detach(s->dev.port, port1->dev);
--
1.7.1
- [Qemu-devel] [PULL 1.0] usb fixes, Gerd Hoffmann, 2011/11/23
- [Qemu-devel] [PATCH 3/7] usb-hub: wakeup on detach too.,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 5/7] usb-ehci: codestyle fixups, Gerd Hoffmann, 2011/11/23
- [Qemu-devel] [PATCH 7/7] usb-host: add usb_host_do_reset function., Gerd Hoffmann, 2011/11/23
- [Qemu-devel] [PATCH 1/7] usb: make usb_create_simple catch and pass up errors., Gerd Hoffmann, 2011/11/23
- [Qemu-devel] [PATCH 2/7] usb: fix usb_qdev_init error handling., Gerd Hoffmann, 2011/11/23
- [Qemu-devel] [PATCH 6/7] usb-ehci: add register names, Gerd Hoffmann, 2011/11/23
- [Qemu-devel] [PATCH 4/7] usb-hub: implement reset, Gerd Hoffmann, 2011/11/23
- Re: [Qemu-devel] [PULL 1.0] usb fixes, Anthony Liguori, 2011/11/28