mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
usb-hub: clear suspend on detach
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180912114012.6034-1-kraxel@redhat.com
This commit is contained in:
@@ -191,6 +191,10 @@ static void usb_hub_detach(USBPort *port1)
|
||||
port->wPortStatus &= ~PORT_STAT_ENABLE;
|
||||
port->wPortChange |= PORT_STAT_C_ENABLE;
|
||||
}
|
||||
if (port->wPortStatus & PORT_STAT_SUSPEND) {
|
||||
port->wPortStatus &= ~PORT_STAT_SUSPEND;
|
||||
port->wPortChange |= PORT_STAT_C_SUSPEND;
|
||||
}
|
||||
usb_wakeup(s->intr, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user