usb-hub: wakeup on attach
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Oct 2011 09:36:43 +0000 (11:36 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 1 Nov 2011 12:40:33 +0000 (13:40 +0100)
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

index 09c6516..7b47079 100644 (file)
@@ -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)