From: Gerd Hoffmann Date: Tue, 22 May 2012 15:24:59 +0000 (+0200) Subject: ehci: kick async schedule on wakeup X-Git-Tag: qemu-xen-4.3.0-rc1~1012^2~8 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0f588df8b3688b00e77aabaa32e26ece5f19bd39;p=qemu-upstream-4.3-testing.git ehci: kick async schedule on wakeup Kick async schedule when we get a wakeup notification from a usb device. Signed-off-by: Gerd Hoffmann --- diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 8b2dfeda5..f8ed80dae 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); } } }