diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-10-14 11:36:43 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-11-01 13:40:33 +0100 |
commit | 4a33a9ea06f6fbb08d8311a7cfed72975344f9ab (patch) | |
tree | 7847d29f7b5413ffee7672531df9d36770a85693 /hw/usb-hub.c | |
parent | ff74c5a9a91c6dbf1017195462aa4176f7381240 (diff) | |
download | qemu-4a33a9ea06f6fbb08d8311a7cfed72975344f9ab.zip |
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 <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-hub.c')
-rw-r--r-- | hw/usb-hub.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |