summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-08-28 11:47:09 +0200
committerMichael Roth <mdroth@linux.vnet.ibm.com>2013-09-24 22:25:14 -0500
commit9dbfbb89b204e098f283aca310e4d6f6651d88f4 (patch)
tree95c3463a99324127ccd9c24ea68e6e781219eaac
parent57ea2d21ae1863fd4002b2aea8ea8db8e206d464 (diff)
downloadqemu-9dbfbb89b204e098f283aca310e4d6f6651d88f4.tar.gz
xhci: reset port when disabling slot
Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> (cherry picked from commit 5c67dd7b4884979a2613a4702ac1ab68b0e6a16e) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-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 3c0ba8e294..a6f55a1bd4 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -2076,6 +2076,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;
}