Commit 5c67dd7b authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

xhci: reset port when disabling slot



Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 4d7a81c0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2123,6 +2123,7 @@ static TRBCCode xhci_disable_slot(XHCIState *xhci, unsigned int slotid)

    xhci->slots[slotid-1].enabled = 0;
    xhci->slots[slotid-1].addressed = 0;
    xhci->slots[slotid-1].uport = NULL;
    return CC_SUCCESS;
}