cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From 8aa4bf9e8049ab1f0f4beda2eaa620f970f98692 Mon Sep 17 00:00:00 2001
218e99
From: Gerd Hoffmann <kraxel@redhat.com>
218e99
Date: Thu, 12 Sep 2013 09:39:31 +0200
218e99
Subject: [PATCH 03/25] xhci: reset port when disabling slot
218e99
218e99
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
218e99
Message-id: <1378978772-21612-4-git-send-email-kraxel@redhat.com>
218e99
Patchwork-id: 54336
218e99
O-Subject: [RHEL-7 qemu-kvm PATCH 3/4] xhci: reset port when disabling slot
218e99
Bugzilla: 1001604
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Hans de Goede <hdegoede@redhat.com>
218e99
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
218e99
Cc: qemu-stable@nongnu.org
218e99
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
218e99
(cherry picked from commit 5c67dd7b4884979a2613a4702ac1ab68b0e6a16e)
218e99
---
218e99
 hw/usb/hcd-xhci.c | 1 +
218e99
 1 file changed, 1 insertion(+)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 hw/usb/hcd-xhci.c |    1 +
218e99
 1 files changed, 1 insertions(+), 0 deletions(-)
218e99
218e99
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
218e99
index ccf7cc5..0061cbe 100644
218e99
--- a/hw/usb/hcd-xhci.c
218e99
+++ b/hw/usb/hcd-xhci.c
218e99
@@ -2090,6 +2090,7 @@ static TRBCCode xhci_disable_slot(XHCIState *xhci, unsigned int slotid)
218e99
 
218e99
     xhci->slots[slotid-1].enabled = 0;
218e99
     xhci->slots[slotid-1].addressed = 0;
218e99
+    xhci->slots[slotid-1].uport = NULL;
218e99
     return CC_SUCCESS;
218e99
 }
218e99
 
218e99
-- 
218e99
1.7.1
218e99