Page MenuHomeFreeBSD

D60656.id189621.diff
No OneTemporary

D60656.id189621.diff

diff --git a/sys/dev/dpaa2/dpaa2_mc.c b/sys/dev/dpaa2/dpaa2_mc.c
--- a/sys/dev/dpaa2/dpaa2_mc.c
+++ b/sys/dev/dpaa2/dpaa2_mc.c
@@ -650,6 +650,7 @@
struct dpaa2_mc_softc *sc = device_get_softc(mcdev);
struct dpaa2_devinfo *dinfo = device_get_ivars(child);
#ifdef DEV_ACPI
+ char name[64];
intptr_t xref;
u_int devid;
#endif
@@ -665,8 +666,11 @@
* NOTE: The first named component from the IORT table
* with the given name (as a substring) will be used.
*/
- error = acpi_iort_map_named_msi(IORT_DEVICE_NAME,
- dinfo->icid, &xref, &devid);
+ if (!acpi_get_name(acpi_get_handle(mcdev), name,
+ sizeof(name)))
+ return (0);
+ error = acpi_iort_map_named_msi(name, dinfo->icid,
+ &xref, &devid);
if (error)
return (0);
return (xref);

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 14, 1:02 AM (14 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40760344
Default Alt Text
D60656.id189621.diff (794 B)

Event Timeline