git: 6f37cb64f3c7 - stable/13 - pci_host_generic: update Synopsys device description for ACPI

From: Marcin Wojtas <mw_at_FreeBSD.org>
Date: Mon, 07 Mar 2022 11:19:58 UTC
The branch stable/13 has been updated by mw:

URL: https://cgit.FreeBSD.org/src/commit/?id=6f37cb64f3c74106ac63b241af1128c8772b552d

commit 6f37cb64f3c74106ac63b241af1128c8772b552d
Author:     Marcin Wojtas <mw@FreeBSD.org>
AuthorDate: 2021-09-16 14:39:42 +0000
Commit:     Marcin Wojtas <mw@FreeBSD.org>
CommitDate: 2022-03-07 11:19:29 +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
    
    (cherry picked from commit e8a872536042970b4dbf14dc75755a352fb14488)
---
 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))