OSDN Git Service

xhci: reset port when disabling slot
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 28 Aug 2013 09:47:09 +0000 (11:47 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 2 Sep 2013 09:06:19 +0000 (11:06 +0200)
Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index 2e2eb55..10c938a 100644 (file)
@@ -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;
 }