render / rpms / qemu

Forked from rpms/qemu 5 months ago
Clone

Blame 0019-xhci-reset-port-when-disabling-slot.patch

298366
From 9dbfbb89b204e098f283aca310e4d6f6651d88f4 Mon Sep 17 00:00:00 2001
298366
From: Gerd Hoffmann <kraxel@redhat.com>
298366
Date: Wed, 28 Aug 2013 11:47:09 +0200
298366
Subject: [PATCH] xhci: reset port when disabling slot
298366
298366
Cc: qemu-stable@nongnu.org
298366
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
298366
(cherry picked from commit 5c67dd7b4884979a2613a4702ac1ab68b0e6a16e)
298366
298366
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
298366
---
298366
 hw/usb/hcd-xhci.c | 1 +
298366
 1 file changed, 1 insertion(+)
298366
298366
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
298366
index 3c0ba8e..a6f55a1 100644
298366
--- a/hw/usb/hcd-xhci.c
298366
+++ b/hw/usb/hcd-xhci.c
298366
@@ -2076,6 +2076,7 @@ static TRBCCode xhci_disable_slot(XHCIState *xhci, unsigned int slotid)
298366
 
298366
     xhci->slots[slotid-1].enabled = 0;
298366
     xhci->slots[slotid-1].addressed = 0;
298366
+    xhci->slots[slotid-1].uport = NULL;
298366
     return CC_SUCCESS;
298366
 }
298366