|
|
218e99 |
From 4092201c71c55673c526887b3985002d8a9ba2d9 Mon Sep 17 00:00:00 2001
|
|
|
218e99 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
218e99 |
Date: Wed, 7 Aug 2013 09:22:45 +0200
|
|
|
218e99 |
Subject: [PATCH 14/28] xhci: add XHCISlot->addressed
|
|
|
218e99 |
|
|
|
218e99 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
218e99 |
Message-id: <1375867368-18979-3-git-send-email-kraxel@redhat.com>
|
|
|
218e99 |
Patchwork-id: 53039
|
|
|
218e99 |
O-Subject: [RHEL-7 qemu-kvm PATCH 2/5] xhci: add XHCISlot->addressed
|
|
|
218e99 |
Bugzilla: 838170
|
|
|
218e99 |
RH-Acked-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
Preparing for live-migration support, post_load will need that.
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
218e99 |
(cherry picked from commit 4034e6938a4cba090a8fac02499c8a9567201665)
|
|
|
218e99 |
---
|
|
|
218e99 |
hw/usb/hcd-xhci.c | 3 +++
|
|
|
218e99 |
1 file changed, 3 insertions(+)
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
hw/usb/hcd-xhci.c | 3 +++
|
|
|
218e99 |
1 files changed, 3 insertions(+), 0 deletions(-)
|
|
|
218e99 |
|
|
|
218e99 |
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
|
|
|
218e99 |
index d88c1ae..4111e68 100644
|
|
|
218e99 |
--- a/hw/usb/hcd-xhci.c
|
|
|
218e99 |
+++ b/hw/usb/hcd-xhci.c
|
|
|
218e99 |
@@ -405,6 +405,7 @@ struct XHCIEPContext {
|
|
|
218e99 |
|
|
|
218e99 |
typedef struct XHCISlot {
|
|
|
218e99 |
bool enabled;
|
|
|
218e99 |
+ bool addressed;
|
|
|
218e99 |
dma_addr_t ctx;
|
|
|
218e99 |
USBPort *uport;
|
|
|
218e99 |
XHCIEPContext * eps[31];
|
|
|
218e99 |
@@ -2041,6 +2042,7 @@ static TRBCCode xhci_disable_slot(XHCIState *xhci, unsigned int slotid)
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
xhci->slots[slotid-1].enabled = 0;
|
|
|
218e99 |
+ xhci->slots[slotid-1].addressed = 0;
|
|
|
218e99 |
return CC_SUCCESS;
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
@@ -2167,6 +2169,7 @@ static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid,
|
|
|
218e99 |
xhci_dma_write_u32s(xhci, octx, slot_ctx, sizeof(slot_ctx));
|
|
|
218e99 |
xhci_dma_write_u32s(xhci, octx+32, ep0_ctx, sizeof(ep0_ctx));
|
|
|
218e99 |
|
|
|
218e99 |
+ xhci->slots[slotid-1].addressed = 1;
|
|
|
218e99 |
return res;
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
--
|
|
|
218e99 |
1.7.1
|
|
|
218e99 |
|