mirror of https://gitee.com/openkylin/qemu.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 <kraxel@redhat.com>
This commit is contained in:
parent
ae710b9905
commit
0f588df8b3
|
@ -852,6 +852,8 @@ static void ehci_wakeup(USBPort *port)
|
||||||
USBPort *companion = s->companion_ports[port->index];
|
USBPort *companion = s->companion_ports[port->index];
|
||||||
if (companion->ops->wakeup) {
|
if (companion->ops->wakeup) {
|
||||||
companion->ops->wakeup(companion);
|
companion->ops->wakeup(companion);
|
||||||
|
} else {
|
||||||
|
qemu_bh_schedule(s->async_bh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue