Patchwork usb-hub: wakeup on attach

login
register
mail settings
Submitter Gerd Hoffmann
Date Oct. 14, 2011, 9:40 a.m.
Message ID <1318585218-21965-1-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/119753/
State New
Headers show

Comments

Gerd Hoffmann - Oct. 14, 2011, 9:40 a.m.
When attaching a new device we must send a wakeup request to the root
hub, otherwise the guest will not notice the new device in case the
usb hub is suspended.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb-hub.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/usb-hub.c b/hw/usb-hub.c
index 3e923a0..908c622 100644
--- a/hw/usb-hub.c
+++ b/hw/usb-hub.c
@@ -163,6 +163,7 @@  static void usb_hub_attach(USBPort *port1)
     } else {
         port->wPortStatus &= ~PORT_STAT_LOW_SPEED;
     }
+    usb_wakeup(&s->dev);
 }
 
 static void usb_hub_detach(USBPort *port1)