From 1d0e8a50a0883649d98c15158fdb14280a2969eb Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 21 Apr 2012 04:17:30 +0000 Subject: [PATCH] Allow for MIPS devices to have a specific probe/attach order. The default priority is now '1000' rather than '0'. This may cause some unforseen regressions. Submitted by: Stefan Bethke Reviewed by: imp --- sys/mips/mips/nexus.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/mips/mips/nexus.c b/sys/mips/mips/nexus.c index 45590e1057f..47b8c198dfe 100644 --- a/sys/mips/mips/nexus.c +++ b/sys/mips/mips/nexus.c @@ -237,11 +237,14 @@ nexus_hinted_child(device_t bus, const char *dname, int dunit) device_t child; long maddr; int msize; + int order; int result; int irq; int mem_hints_count; - child = BUS_ADD_CHILD(bus, 0, dname, dunit); + if ((resource_int_value(dname, dunit, "order", &order)) != 0) + order = 1000; + child = BUS_ADD_CHILD(bus, order, dname, dunit); if (child == NULL) return;