diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2022-11-27 00:45:37 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2022-11-27 00:45:37 +0000 |
commit | 41e85e8e35e98af3f2f8032b57774eb3489ff45c (patch) | |
tree | d9706c12b466219adb37698fb20bc17ebd36a936 | |
parent | 598e073f749b4db5bca5a4555a6f794598ca11a7 (diff) |
dpaa: Don't probe disabled devices
Probing disabled devices just adds noise.
-rw-r--r-- | sys/dev/dpaa/fman_fdt.c | 3 | ||||
-rw-r--r-- | sys/dev/dpaa/if_dtsec_fdt.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/dpaa/fman_fdt.c b/sys/dev/dpaa/fman_fdt.c index b6234179b382..a3888d91b8a0 100644 --- a/sys/dev/dpaa/fman_fdt.c +++ b/sys/dev/dpaa/fman_fdt.c @@ -72,6 +72,9 @@ static int fman_fdt_probe(device_t dev) { + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (!ofw_bus_is_compatible(dev, "fsl,fman")) return (ENXIO); diff --git a/sys/dev/dpaa/if_dtsec_fdt.c b/sys/dev/dpaa/if_dtsec_fdt.c index 1ab331caf0d1..179d620fcc3b 100644 --- a/sys/dev/dpaa/if_dtsec_fdt.c +++ b/sys/dev/dpaa/if_dtsec_fdt.c @@ -98,6 +98,9 @@ static int dtsec_fdt_probe(device_t dev) { + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (!ofw_bus_is_compatible(dev, "fsl,fman-dtsec") && !ofw_bus_is_compatible(dev, "fsl,fman-xgec")) return (ENXIO); |