OSDN Git Service

ehci: kick async schedule on wakeup
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 22 May 2012 15:24:59 +0000 (17:24 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Jun 2012 08:02:22 +0000 (10:02 +0200)
Kick async schedule when we get a wakeup
notification from a usb device.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci.c

index 8b2dfed..f8ed80d 100644 (file)
@@ -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);
         }
     }
 }