Skip to contentSkip to conversation

usb-hub: wakeup on attach

PATCH New Gerd Hoffmann 1 participant 1 message Oct 14, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb-hub: wakeup on attach

When attaching a new device we must send a wakeup request to the root hub, otherwise the guest will not notice the new device in case the usb hub is suspended.

---
 hw/usb-hub.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/usb-hub.c +1 -0
index 3e923a0..908c622 100644
@@ -163,6 +163,7 @@ static void usb_hub_attach(USBPort *port1)
     } else {
         port->wPortStatus &= ~PORT_STAT_LOW_SPEED;
     }
+    usb_wakeup(&s->dev);
 }
 
 static void usb_hub_detach(USBPort *port1)
Signature · 1 line
1.7.1