Author: gonzo
Date: Wed Oct 12 02:58:27 2016
New Revision: 307087
URL: https://svnweb.freebsd.org/changeset/base/307087

Log:
  Make sure intc is attached before interrupt consumers
  
  If pass order is not specified devices are attached in the order they are
  defined in dts. Some interrupt consumers may be defined before intc. Also
  make sure intc interrupt-parent local_intc is attached before intc itself.

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_intr.c

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_intr.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_intr.c        Wed Oct 12 02:55:24 
2016        (r307086)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_intr.c        Wed Oct 12 02:58:27 
2016        (r307087)
@@ -468,7 +468,8 @@ static driver_t bcm_intc_driver = {
 
 static devclass_t bcm_intc_devclass;
 
-DRIVER_MODULE(intc, simplebus, bcm_intc_driver, bcm_intc_devclass, 0, 0);
+EARLY_DRIVER_MODULE(intc, simplebus, bcm_intc_driver, bcm_intc_devclass,
+    0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
 
 #ifndef INTRNG
 int
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to