|
|
ae23c9 |
From 40a88676cdb22e844dce24c1745b6004a8cf7806 Mon Sep 17 00:00:00 2001
|
|
|
ae23c9 |
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ae23c9 |
Date: Thu, 26 Apr 2018 02:54:07 +0000
|
|
|
ae23c9 |
Subject: Remove ich9_uhci123_irqpin_override
|
|
|
ae23c9 |
|
|
|
ae23c9 |
As we do not support RHEL 6 compatibility we remove this hack.
|
|
|
ae23c9 |
|
|
|
ae23c9 |
This hack was introduced in RHEL 7.1 for BZ 1085701 and 1103581 (Guest
|
|
|
ae23c9 |
hits call trace migrate from RHEL6.5 to RHEL7.0 host with -M 6.1
|
|
|
ae23c9 |
& balloon & uhci device) by commits 8061ffe65490 and 42a193d925b3,
|
|
|
ae23c9 |
and was backported to RHEL 7.0 as 0day fix (BZ 1090981,
|
|
|
ae23c9 |
commit 48addb5b5b3b).
|
|
|
ae23c9 |
|
|
|
ae23c9 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ae23c9 |
---
|
|
|
ae23c9 |
hw/usb/hcd-uhci.c | 13 +------------
|
|
|
ae23c9 |
include/hw/usb.h | 3 ---
|
|
|
ae23c9 |
2 files changed, 1 insertion(+), 15 deletions(-)
|
|
|
ae23c9 |
|
|
|
ae23c9 |
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
|
|
|
ae23c9 |
index 86d6ab8..9d7b9df 100644
|
|
|
ae23c9 |
--- a/hw/usb/hcd-uhci.c
|
|
|
ae23c9 |
+++ b/hw/usb/hcd-uhci.c
|
|
|
ae23c9 |
@@ -152,8 +152,6 @@ typedef struct UHCI_QH {
|
|
|
ae23c9 |
uint32_t el_link;
|
|
|
ae23c9 |
} UHCI_QH;
|
|
|
ae23c9 |
|
|
|
ae23c9 |
-bool ich9_uhci123_irqpin_override;
|
|
|
ae23c9 |
-
|
|
|
ae23c9 |
static void uhci_async_cancel(UHCIAsync *async);
|
|
|
ae23c9 |
static void uhci_queue_fill(UHCIQueue *q, UHCI_TD *td);
|
|
|
ae23c9 |
static void uhci_resume(void *opaque);
|
|
|
ae23c9 |
@@ -1222,16 +1220,7 @@ static void usb_uhci_common_realize(PCIDevice *dev, Error **errp)
|
|
|
ae23c9 |
/* TODO: reset value should be 0. */
|
|
|
ae23c9 |
pci_conf[USB_SBRN] = USB_RELEASE_1; // release number
|
|
|
ae23c9 |
|
|
|
ae23c9 |
- if (ich9_uhci123_irqpin_override &&
|
|
|
ae23c9 |
- u->info.vendor_id == PCI_VENDOR_ID_INTEL &&
|
|
|
ae23c9 |
- (u->info.device_id == PCI_DEVICE_ID_INTEL_82801I_UHCI1 ||
|
|
|
ae23c9 |
- u->info.device_id == PCI_DEVICE_ID_INTEL_82801I_UHCI2 ||
|
|
|
ae23c9 |
- u->info.device_id == PCI_DEVICE_ID_INTEL_82801I_UHCI3)) {
|
|
|
ae23c9 |
- fprintf(stderr, "RHEL-6 compat: %s: irq_pin = 3\n", u->info.name);
|
|
|
ae23c9 |
- irq_pin = 3;
|
|
|
ae23c9 |
- } else {
|
|
|
ae23c9 |
- irq_pin = u->info.irq_pin;
|
|
|
ae23c9 |
- }
|
|
|
ae23c9 |
+ irq_pin = u->info.irq_pin;
|
|
|
ae23c9 |
pci_config_set_interrupt_pin(pci_conf, irq_pin + 1);
|
|
|
ae23c9 |
|
|
|
ae23c9 |
if (s->masterbus) {
|
|
|
ae23c9 |
diff --git a/include/hw/usb.h b/include/hw/usb.h
|
|
|
ae23c9 |
index 5b3fb1f..b943ec9 100644
|
|
|
ae23c9 |
--- a/include/hw/usb.h
|
|
|
ae23c9 |
+++ b/include/hw/usb.h
|
|
|
ae23c9 |
@@ -607,9 +607,6 @@ int usb_get_quirks(uint16_t vendor_id, uint16_t product_id,
|
|
|
ae23c9 |
uint8_t interface_protocol);
|
|
|
ae23c9 |
|
|
|
ae23c9 |
|
|
|
ae23c9 |
-/* hcd-uhci.c -- RHEL-6 machine type compatibility */
|
|
|
ae23c9 |
-extern bool ich9_uhci123_irqpin_override;
|
|
|
ae23c9 |
-
|
|
|
ae23c9 |
/* hcd-xhci.c -- rhel7.0.0 machine type compatibility */
|
|
|
ae23c9 |
extern bool migrate_cve_2014_5263_xhci_fields;
|
|
|
ae23c9 |
|
|
|
ae23c9 |
--
|
|
|
ae23c9 |
1.8.3.1
|
|
|
ae23c9 |
|