svn commit: r234525 - head/sys/mips/mips

Adrian Chadd adrian at FreeBSD.org
Sat Apr 21 04:17:31 UTC 2012


Author: adrian
Date: Sat Apr 21 04:17:30 2012
New Revision: 234525
URL: http://svn.freebsd.org/changeset/base/234525

Log:
  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 <stb at lassitu.de>
  Reviewed by:	imp

Modified:
  head/sys/mips/mips/nexus.c

Modified: head/sys/mips/mips/nexus.c
==============================================================================
--- head/sys/mips/mips/nexus.c	Sat Apr 21 01:51:16 2012	(r234524)
+++ head/sys/mips/mips/nexus.c	Sat Apr 21 04:17:30 2012	(r234525)
@@ -237,11 +237,14 @@ nexus_hinted_child(device_t bus, const c
 	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;
 


More information about the svn-src-all mailing list