diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb-ehci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index 75ef71e69e..cdd74154a0 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -765,6 +765,11 @@ static void ehci_detach(USBPort *port) USBPort *companion = s->companion_ports[port->index]; companion->ops->detach(companion); companion->dev = NULL; + /* + * EHCI spec 4.2.2: "When a disconnect occurs... On the event, + * the port ownership is returned immediately to the EHCI controller." + */ + *portsc &= ~PORTSC_POWNER; return; } |