From 4a33a9ea06f6fbb08d8311a7cfed72975344f9ab Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 14 Oct 2011 11:36:43 +0200 Subject: [PATCH] usb-hub: wakeup on attach 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 --- hw/usb-hub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb-hub.c b/hw/usb-hub.c index 09c65160c2..7b47079ac4 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)