]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commitdiff
xhci: reset port when disabling slot
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 28 Aug 2013 09:47:09 +0000 (11:47 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Sep 2013 03:25:14 +0000 (22:25 -0500)
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>
hw/usb/hcd-xhci.c

index 3c0ba8e294656b28a4c5f013164781a4e5557d39..a6f55a1bd4df2c0f5cde4197d71d0a7f6d43ff46 100644 (file)
@@ -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;
 }