mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06: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:
parent
f7c36a754c
commit
3e9191acb7
1 changed files with 4 additions and 0 deletions
|
@ -191,6 +191,10 @@ static void usb_hub_detach(USBPort *port1)
|
||||||
port->wPortStatus &= ~PORT_STAT_ENABLE;
|
port->wPortStatus &= ~PORT_STAT_ENABLE;
|
||||||
port->wPortChange |= PORT_STAT_C_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);
|
usb_wakeup(s->intr, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue