diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-20 13:29:53 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-10 12:16:30 +0100 |
commit | 37f32f0fdd3ed589266d159abb69f3a1bae20ec5 (patch) | |
tree | a704b86e09848c129eace5c224fcd85d5bcf21dd /hw/usb.c | |
parent | 7567b51fbe92e1300a672eaddd413c4a7e807d90 (diff) |
usb: add USBBusOps->wakeup_endpoint
Add usb bus op which is called whenever a usb endpoint becomes ready,
so the host adapter emulation can react on that event.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.c')
-rw-r--r-- | hw/usb.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -73,10 +73,14 @@ void usb_device_reset(USBDevice *dev) void usb_wakeup(USBEndpoint *ep) { USBDevice *dev = ep->dev; + USBBus *bus = usb_bus_from_device(dev); if (dev->remote_wakeup && dev->port && dev->port->ops->wakeup) { dev->port->ops->wakeup(dev->port); } + if (bus->ops->wakeup_endpoint) { + bus->ops->wakeup_endpoint(bus, ep); + } } /**********************/ |