yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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