Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2018 16:40:59 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r333018 - stable/11/sys/dev/gpio
Message-ID:  <201804261640.w3QGex1V069817@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Thu Apr 26 16:40:59 2018
New Revision: 333018
URL: https://svnweb.freebsd.org/changeset/base/333018

Log:
  MFC r308767 by br:
  
  Make gpiobus early driver at BUS_PAS_BUS.
  
  The gpiobus driver is attached explicitly and generally should be
  at the same pass as its parent. Making it use BUS_PAS_BUS ensures
  that it attaches immediately after parent adds it (assuming the
  parent itself attached at BUS_PAS_BUS and above).
  
  Submitted by:	kan
  Sponsored by:	DARPA, AFRL

Modified:
  stable/11/sys/dev/gpio/gpiobus.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/gpio/gpiobus.c
==============================================================================
--- stable/11/sys/dev/gpio/gpiobus.c	Thu Apr 26 13:18:24 2018	(r333017)
+++ stable/11/sys/dev/gpio/gpiobus.c	Thu Apr 26 16:40:59 2018	(r333018)
@@ -855,5 +855,6 @@ driver_t gpiobus_driver = {
 
 devclass_t	gpiobus_devclass;
 
-DRIVER_MODULE(gpiobus, gpio, gpiobus_driver, gpiobus_devclass, 0, 0);
+EARLY_DRIVER_MODULE(gpiobus, gpio, gpiobus_driver, gpiobus_devclass, 0, 0,
+    BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 MODULE_VERSION(gpiobus, 1);



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