Skip to content
Snippets Groups Projects
Commit cf21a4ae authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

xhci: fix port status


Don't signal port status change if the usb device isn't in attached
state.  Happens with usb-host devices with the pass-through device
being plugged out at the host.

Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 2850ca9e
No related branches found
No related tags found
No related merge requests found
......@@ -2279,7 +2279,7 @@ static void xhci_update_port(XHCIState *xhci, XHCIPort *port, int is_detach)
int nr = port->port.index + 1;
port->portsc = PORTSC_PP;
if (port->port.dev && !is_detach) {
if (port->port.dev && port->port.dev->attached && !is_detach) {
port->portsc |= PORTSC_CCS;
switch (port->port.dev->speed) {
case USB_SPEED_LOW:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment