Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2012 04:17:30 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234525 - head/sys/mips/mips
Message-ID:  <201204210417.q3L4HUPR070830@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204210417.q3L4HUPR070830>