Patchwork [06/11] xhci: reset port when disabling slot

login
register
mail settings
Submitter Gerd Hoffmann
Date Sept. 2, 2013, 10:17 a.m.
Message ID <1378117055-29620-7-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/271869/
State New
Headers show

Comments

Gerd Hoffmann - Sept. 2, 2013, 10:17 a.m.
Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/hcd-xhci.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 2e2eb55..10c938a 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;
 }