From: Gerd Hoffmann Date: Fri, 14 Oct 2011 09:36:43 +0000 (+0200) Subject: usb-hub: wakeup on attach X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~1437^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a33a9ea06f6fbb08d8311a7cfed72975344f9ab;p=sdk%2Femulator%2Fqemu.git 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 --- 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)