diff options
author | Marcin Wojtas <mw@FreeBSD.org> | 2021-09-16 14:39:42 +0000 |
---|---|---|
committer | Marcin Wojtas <mw@FreeBSD.org> | 2021-09-16 14:53:11 +0000 |
commit | e8a872536042970b4dbf14dc75755a352fb14488 (patch) | |
tree | cd7a722aa37b914b07f91cb98ddcb1965816284b | |
parent | a3f0d18237bdcf272461d3b4b682de384c572144 (diff) | |
download | src-e8a872536042970b4dbf14dc75755a352fb14488.tar.gz src-e8a872536042970b4dbf14dc75755a352fb14488.zip |
pci_host_generic: update Synopsys device description for ACPI
The recent addition of Synopsys ECAM quirk set the
device description only for the DT variant.
Do the same in ACPI case.
Reported by: jrtc27
-rw-r--r-- | sys/dev/pci/pci_host_generic_acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_host_generic_acpi.c b/sys/dev/pci/pci_host_generic_acpi.c index 3c32abc5007a..9628517813a9 100644 --- a/sys/dev/pci/pci_host_generic_acpi.c +++ b/sys/dev/pci/pci_host_generic_acpi.c @@ -242,6 +242,8 @@ pci_host_acpi_get_ecam_resource(device_t dev) return (ENXIO); } pci_host_acpi_get_oem_quirks(sc, hdr); + if (sc->base.quirks & PCIE_ECAM_DESIGNWARE_QUIRK) + device_set_desc(dev, "Synopsys DesignWare PCIe Controller"); } else { status = acpi_GetInteger(handle, "_CBA", &val); if (ACPI_SUCCESS(status)) |