dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

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

Hans de Goede c8dfc6
From 25968a7c7947b7e215e351b159a5f4ebf4609aab 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
Hans de Goede c8dfc6
Subject: [PATCH 354/366] 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>
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
Hans de Goede c8dfc6
index 500892d..2918e64 100644
Hans de Goede c8dfc6
--- a/hw/usb/hcd-xhci.c
Hans de Goede c8dfc6
+++ b/hw/usb/hcd-xhci.c
Hans de Goede c8dfc6
@@ -2748,8 +2748,10 @@ static void xhci_doorbell_write(void *ptr, target_phys_addr_t reg,
Hans de Goede c8dfc6
 
Hans de Goede c8dfc6
 static const MemoryRegionOps xhci_cap_ops = {
Hans de Goede c8dfc6
     .read = xhci_cap_read,
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
-- 
Hans de Goede c8dfc6
1.7.12
Hans de Goede c8dfc6