Blame 0154-xhci-allow-bytewise-capability-register-reads.patch

5544c1
From 0233069eb2724255f03253f0afe814773eaf345c Mon Sep 17 00:00:00 2001
Hans de Goede c8dfc6
From: Gerd Hoffmann <kraxel@redhat.com>
Hans de Goede c8dfc6
Date: Tue, 4 Sep 2012 14:48:03 +0200
5544c1
Subject: [PATCH] xhci: allow bytewise capability register reads
Hans de Goede c8dfc6
Hans de Goede c8dfc6
Some guests need this according to
Hans de Goede c8dfc6
Alejandro Martinez Ruiz <alex@securiforest.com>
Hans de Goede c8dfc6
Hans de Goede c8dfc6
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
5544c1
(cherry picked from commit 6ee021d41078844df60a3a466e3829a3e82776f3)
5544c1
5544c1
Conflicts:
5544c1
5544c1
	hw/usb/hcd-xhci.c
5544c1
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Hans de Goede c8dfc6
---
Hans de Goede c8dfc6
 hw/usb/hcd-xhci.c | 4 +++-
Hans de Goede c8dfc6
 1 file changed, 3 insertions(+), 1 deletion(-)
Hans de Goede c8dfc6
Hans de Goede c8dfc6
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
5544c1
index 24b1f87..333df59 100644
Hans de Goede c8dfc6
--- a/hw/usb/hcd-xhci.c
Hans de Goede c8dfc6
+++ b/hw/usb/hcd-xhci.c
5544c1
@@ -2474,8 +2474,10 @@ static void xhci_mem_write(void *ptr, target_phys_addr_t addr,
5544c1
 static const MemoryRegionOps xhci_mem_ops = {
5544c1
     .read = xhci_mem_read,
5544c1
     .write = xhci_mem_write,
Hans de Goede c8dfc6
-    .valid.min_access_size = 4,
Hans de Goede c8dfc6
+    .valid.min_access_size = 1,
Hans de Goede c8dfc6
     .valid.max_access_size = 4,
Hans de Goede c8dfc6
+    .impl.min_access_size = 4,
Hans de Goede c8dfc6
+    .impl.max_access_size = 4,
Hans de Goede c8dfc6
     .endianness = DEVICE_LITTLE_ENDIAN,
Hans de Goede c8dfc6
 };
Hans de Goede c8dfc6
 
Hans de Goede c8dfc6
-- 
5544c1
1.7.12.1
Hans de Goede c8dfc6