thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-libqos-usb-hcd-ehci-use-32-bit-write-for-config-regi.patch

dc7afb
From 6320b4e76965b1cf64da4307f4d313fe6b2aa971 Mon Sep 17 00:00:00 2001
dc7afb
From: Jon Maloy <jmaloy@redhat.com>
dc7afb
Date: Wed, 21 Apr 2021 22:30:01 -0400
dc7afb
Subject: [PATCH 2/7] libqos: usb-hcd-ehci: use 32-bit write for config
dc7afb
 register
dc7afb
MIME-Version: 1.0
dc7afb
Content-Type: text/plain; charset=UTF-8
dc7afb
Content-Transfer-Encoding: 8bit
dc7afb
dc7afb
RH-Author: Jon Maloy <jmaloy@redhat.com>
dc7afb
Message-id: <20210421223006.19650-2-jmaloy@redhat.com>
dc7afb
Patchwork-id: 101478
dc7afb
O-Subject: [RHEL-8.5.0 qemu-kvm PATCH v2 1/6] libqos: usb-hcd-ehci: use 32-bit write for config register
dc7afb
Bugzilla: 1842478
dc7afb
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
dc7afb
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
dc7afb
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
dc7afb
dc7afb
From: Paolo Bonzini <pbonzini@redhat.com>
dc7afb
dc7afb
The memory region ops have min_access_size == 4 so obey it.
dc7afb
dc7afb
Tested-by: Thomas Huth <thuth@redhat.com>
dc7afb
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
dc7afb
dc7afb
(cherry picked from commit 89ed83d8b23c11d250c290593cad3ca839d5b053)
dc7afb
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
dc7afb
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
dc7afb
---
dc7afb
 tests/usb-hcd-ehci-test.c | 2 +-
dc7afb
 1 file changed, 1 insertion(+), 1 deletion(-)
dc7afb
dc7afb
diff --git a/tests/usb-hcd-ehci-test.c b/tests/usb-hcd-ehci-test.c
dc7afb
index 5251d539e9..c51e8bb223 100644
dc7afb
--- a/tests/usb-hcd-ehci-test.c
dc7afb
+++ b/tests/usb-hcd-ehci-test.c
dc7afb
@@ -96,7 +96,7 @@ static void pci_ehci_port_1(void)
dc7afb
 static void pci_ehci_config(void)
dc7afb
 {
dc7afb
     /* hands over all ports from companion uhci to ehci */
dc7afb
-    qpci_io_writew(ehci1.dev, ehci1.bar, 0x60, 1);
dc7afb
+    qpci_io_writel(ehci1.dev, ehci1.bar, 0x60, 1);
dc7afb
 }
dc7afb
 
dc7afb
 static void pci_uhci_port_2(void)
dc7afb
-- 
dc7afb
2.27.0
dc7afb