aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-08-28 11:47:09 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-09-02 11:06:19 +0200
commit5c67dd7b4884979a2613a4702ac1ab68b0e6a16e (patch)
treec49432099abdf30e93691921b1410ef5cabc306b /hw
parent4d7a81c06f5f17e019a2d3a18300500bd64f6f40 (diff)
xhci: reset port when disabling slot
Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb/hcd-xhci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 2e2eb55d06..10c938a88b 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -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;
}