diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-28 10:15:33 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-19 12:40:48 +0200 |
| commit | 931863ac6f2d0d573936cdcc2bd6bfa15ffa187c (patch) | |
| tree | a28cac7a63f6f7b914573c32cb38ea01709403d0 /hw/usb/hcd-xhci-pci.c | |
| parent | dbe442ad4849aa9bb11535f2a68c0bfa7c51ce86 (diff) | |
| download | focaccia-qemu-931863ac6f2d0d573936cdcc2bd6bfa15ffa187c.tar.gz focaccia-qemu-931863ac6f2d0d573936cdcc2bd6bfa15ffa187c.zip | |
hw/usb/hcd-xhci: Remove XHCI_FLAG_FORCE_PCIE_ENDCAP flag
XHCI_FLAG_FORCE_PCIE_ENDCAP was only used by the pc-i440fx-2.0 machine, which got removed. Remove it and simplify usb_xhci_pci_realize(). Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20240617071118.60464-4-philmd@linaro.org>
Diffstat (limited to 'hw/usb/hcd-xhci-pci.c')
| -rw-r--r-- | hw/usb/hcd-xhci-pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/usb/hcd-xhci-pci.c b/hw/usb/hcd-xhci-pci.c index 4423983308..cbad96f393 100644 --- a/hw/usb/hcd-xhci-pci.c +++ b/hw/usb/hcd-xhci-pci.c @@ -148,8 +148,7 @@ static void usb_xhci_pci_realize(struct PCIDevice *dev, Error **errp) PCI_BASE_ADDRESS_MEM_TYPE_64, &s->xhci.mem); - if (pci_bus_is_express(pci_get_bus(dev)) || - xhci_get_flag(&s->xhci, XHCI_FLAG_FORCE_PCIE_ENDCAP)) { + if (pci_bus_is_express(pci_get_bus(dev))) { ret = pcie_endpoint_cap_init(dev, 0xa0); assert(ret > 0); } |