From 0f588df8b3688b00e77aabaa32e26ece5f19bd39 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 22 May 2012 17:24:59 +0200 Subject: [PATCH] ehci: kick async schedule on wakeup Kick async schedule when we get a wakeup notification from a usb device. Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci.c | 2 ++ 1 file changed, 2 insertions(+) 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); } } }