From: Gerd Hoffmann Date: Wed, 28 Aug 2013 09:47:09 +0000 (+0200) Subject: xhci: reset port when disabling slot X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e617d0d2454a2616679e172f70c1c2e121473362;p=sdk%2Femulator%2Fqemu.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 3c0ba8e294..a6f55a1bd4 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; }