git: e8a872536042 - main - pci_host_generic: update Synopsys device description for ACPI
Marcin Wojtas
mw at FreeBSD.org
Thu Sep 16 14:53:26 UTC 2021
The branch main has been updated by mw:
URL: https://cgit.FreeBSD.org/src/commit/?id=e8a872536042970b4dbf14dc75755a352fb14488
commit e8a872536042970b4dbf14dc75755a352fb14488
Author: Marcin Wojtas <mw at FreeBSD.org>
AuthorDate: 2021-09-16 14:39:42 +0000
Commit: Marcin Wojtas <mw at FreeBSD.org>
CommitDate: 2021-09-16 14:53:11 +0000
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
---
sys/dev/pci/pci_host_generic_acpi.c | 2 ++
1 file changed, 2 insertions(+)
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))
More information about the dev-commits-src-main
mailing list