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
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user