usb-hub: clear suspend on detach
PATCH 1/1 usb-hub: clear suspend on detach
Signed-off-by Gerd Hoffmann <[email protected]>
--- hw/usb/dev-hub.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/usb/dev-hub.c +4 -0
@@ -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 ); }
Signature · 1 line
2.9.3