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:
Gerd Hoffmann 2018-09-12 13:40:12 +02:00
parent f7c36a754c
commit 3e9191acb7
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}