From 5c67dd7b4884979a2613a4702ac1ab68b0e6a16e Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 28 Aug 2013 11:47:09 +0200 Subject: [PATCH] xhci: reset port when disabling slot Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.0