summaryrefslogtreecommitdiff
path: root/hw/usb
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-05-22 17:24:59 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-06-07 10:02:22 +0200
commit0f588df8b3688b00e77aabaa32e26ece5f19bd39 (patch)
tree2f228aad4b0e42bcc363c7dd31366060bc446495 /hw/usb
parentae710b99050a347cc7ef93e1873bf08c9a97b6be (diff)
downloadqemu-0f588df8b3688b00e77aabaa32e26ece5f19bd39.tar.gz
qemu-0f588df8b3688b00e77aabaa32e26ece5f19bd39.tar.bz2
qemu-0f588df8b3688b00e77aabaa32e26ece5f19bd39.zip
ehci: kick async schedule on wakeup
Kick async schedule when we get a wakeup notification from a usb device. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r--hw/usb/hcd-ehci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 8b2dfeda56..f8ed80daee 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -852,6 +852,8 @@ static void ehci_wakeup(USBPort *port)
USBPort *companion = s->companion_ports[port->index];
if (companion->ops->wakeup) {
companion->ops->wakeup(companion);
+ } else {
+ qemu_bh_schedule(s->async_bh);
}
}
}