Only add gicv3 fdt children with a compatible property

Not all gicv3 fdt children have a compatible property. Those that don't
are configuration data rather than something that should have a driver
attach.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2022-07-06 18:04:53 +01:00
parent 37f604b49d
commit 92f692fd24

View file

@ -299,6 +299,14 @@ gic_v3_ofw_bus_attach(device_t dev)
sizeof(size_cells));
/* Iterate through all GIC subordinates */
for (node = OF_child(parent); node > 0; node = OF_peer(node)) {
/*
* Ignore children that lack a compatible property.
* Some of them may be for configuration, for example
* ppi-partitions.
*/
if (!OF_hasprop(node, "compatible"))
continue;
/* Allocate and populate devinfo. */
di = malloc(sizeof(*di), M_GIC_V3, M_WAITOK | M_ZERO);