From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGRCf-0006P6-4c for qemu-devel@nongnu.org; Mon, 02 Sep 2013 06:17:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGRCZ-0007PC-NA for qemu-devel@nongnu.org; Mon, 02 Sep 2013 06:17:49 -0400 From: Gerd Hoffmann Date: Mon, 2 Sep 2013 12:17:30 +0200 Message-Id: <1378117055-29620-7-git-send-email-kraxel@redhat.com> In-Reply-To: <1378117055-29620-1-git-send-email-kraxel@redhat.com> References: <1378117055-29620-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 06/11] xhci: reset port when disabling slot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , qemu-stable@nongnu.org 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 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; } -- 1.8.3.1