The branch main has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=12c3004129466634cbe5c34a1049dc0d5ecdff3b
commit 12c3004129466634cbe5c34a1049dc0d5ecdff3b Author: Michal Meloun <[email protected]> AuthorDate: 2026-09-26 07:23:52 +0000 Commit: Michal Meloun <[email protected]> CommitDate: 2026-09-26 08:30:42 +0000 dpaa2: Don't return simplebus devinfo for a non-simplebus child dpaa2_mc_simplebus_get_devinfo() must not treat the MC resource-container device as a simplebus child. Return NULL when child is sc->rcdev instead of forwarding OFW_BUS_GET_DEVINFO() for that device. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D59836 --- sys/dev/dpaa2/dpaa2_mc_fdt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/dpaa2/dpaa2_mc_fdt.c b/sys/dev/dpaa2/dpaa2_mc_fdt.c index a571f4cf7219..2a808948306f 100644 --- a/sys/dev/dpaa2/dpaa2_mc_fdt.c +++ b/sys/dev/dpaa2/dpaa2_mc_fdt.c @@ -345,6 +345,11 @@ dpaa2_mc_fdt_get_phy_dev(device_t dev, device_t *phy_dev, uint32_t id) static const struct ofw_bus_devinfo * dpaa2_mc_simplebus_get_devinfo(device_t bus, device_t child) { + struct dpaa2_mc_softc *sc; + + sc = device_get_softc(bus); + if (child == sc->rcdev) + return (NULL); return (OFW_BUS_GET_DEVINFO(device_get_parent(bus), child)); }
