]> git.proxmox.com Git - qemu.git/commitdiff
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 09c65160c2d9c27d7353dac259293ed9e8ebe066..7b47079ac4dcb3e1f1c949db226ad019e426857c 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)