aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2023-08-28 23:27:11 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2023-08-28 23:32:44 +0000
commit570688f0a5c2db8e006a9f1f805103d7c407281f (patch)
treec14fd3986c270a69c8f02bc30e41f191b7e40003
parent79aeecc89f5c740f2a3b0c30238233d2a6bb7ec7 (diff)
downloadsrc-570688f0a5c2db8e006a9f1f805103d7c407281f.tar.gz
src-570688f0a5c2db8e006a9f1f805103d7c407281f.zip
spibus: Make ofw_spibus probe just a little more favored
With ade70a1ad(svn r332196) ofw_spibus probes at the BUS_PROBE_DEFAULT instead of 0. However, this races with spibus, resulting in ofw_spibus often times losing the race and the OFW node not being referenced. This in turn causes child device tree nodes to not be attached. Solve this by returning 1 higher than spibus, just like acpi_spibus. Sponsored by: Juniper Networks, Inc. MFC after: 1 week
-rw-r--r--sys/dev/spibus/ofw_spibus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/spibus/ofw_spibus.c b/sys/dev/spibus/ofw_spibus.c
index f9323ab342ee..9460b0cadfe8 100644
--- a/sys/dev/spibus/ofw_spibus.c
+++ b/sys/dev/spibus/ofw_spibus.c
@@ -69,7 +69,7 @@ ofw_spibus_probe(device_t dev)
return (ENXIO);
device_set_desc(dev, "OFW SPI bus");
- return (BUS_PROBE_DEFAULT);
+ return (BUS_PROBE_DEFAULT + 1);
}
static int