From: Gerd Hoffmann Date: Wed, 28 Aug 2013 09:47:09 +0000 (+0200) Subject: xhci: reset port when disabling slot X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5c67dd7b4884979a2613a4702ac1ab68b0e6a16e;p=qemu.git xhci: reset port when disabling slot Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann --- 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; }