Subject: [PATCH 03/25] xhci: reset port when disabling slot

From: Gerd Hoffmann <[email-masked]>
Date: Thu, 12 Sep 2013 09:39:31 +0200

RH-Author: Gerd Hoffmann <[email-masked]>
Message-id: <[email-masked]>
Patchwork-id: 54336
O-Subject: [RHEL-7 qemu-kvm PATCH 3/4] xhci: reset port when disabling slot
Bugzilla: 1001604
RH-Acked-by: Paolo Bonzini <[email-masked]>
RH-Acked-by: Hans de Goede <[email-masked]>
RH-Acked-by: Miroslav Rezanina <[email-masked]>

Cc: [email-masked]
Signed-off-by: Gerd Hoffmann <[email-masked]>
(cherry picked from commit 5c67dd7b4884979a2613a4702ac1ab68b0e6a16e)
---
 hw/usb/hcd-xhci.c | 1 +
 1 file changed, 1 insertion(+)

Signed-off-by: Miroslav Rezanina <[email-masked]>
---
 hw/usb/hcd-xhci.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index ccf7cc5..0061cbe 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -2090,6 +2090,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.7.1