From: Gerd Hoffmann Date: Wed, 28 Aug 2013 09:47:09 +0000 (+0200) Subject: xhci: reset port when disabling slot X-Git-Tag: qemu-xen-4.4.0-rc1~1^2~30 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9dbfbb89b204e098f283aca310e4d6f6651d88f4;p=qemu-upstream-4.4-testing.git xhci: reset port when disabling slot Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann (cherry picked from commit 5c67dd7b4884979a2613a4702ac1ab68b0e6a16e) Signed-off-by: Michael Roth --- diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 3c0ba8e29..a6f55a1bd 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -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; }