mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
usb: Call wakeup when data becomes available for all devices with int eps
This is necessary for proper interaction with the xhci controller, and it will allow other hcds to lower there frame timer while waiting for interrupt data. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
f1ae2e3883
commit
8beba93043
4 changed files with 17 additions and 0 deletions
|
@ -184,6 +184,7 @@ static void usb_hub_detach(USBPort *port1)
|
|||
port->wPortStatus &= ~PORT_STAT_ENABLE;
|
||||
port->wPortChange |= PORT_STAT_C_ENABLE;
|
||||
}
|
||||
usb_wakeup(s->intr);
|
||||
}
|
||||
|
||||
static void usb_hub_child_detach(USBPort *port1, USBDevice *child)
|
||||
|
@ -363,6 +364,7 @@ static void usb_hub_handle_control(USBDevice *dev, USBPacket *p,
|
|||
port->wPortChange |= PORT_STAT_C_RESET;
|
||||
/* set enable bit */
|
||||
port->wPortStatus |= PORT_STAT_ENABLE;
|
||||
usb_wakeup(s->intr);
|
||||
}
|
||||
break;
|
||||
case PORT_POWER:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue