Author: ian
Date: Tue Dec 10 21:48:21 2019
New Revision: 355598
URL: https://svnweb.freebsd.org/changeset/base/355598

Log:
  Do not attach children of owc_gpiobus until interrupts are working.
  
  The children of the bus need to do IO on the bus to probe for hardware
  presence.  Doing IO means timing the bus states using sbinuptime(), and
  that requires working timecounters, which are not initialized until after
  device attachment has completed.
  
  PR:           242526

Modified:
  head/sys/dev/ow/owc_gpiobus.c

Modified: head/sys/dev/ow/owc_gpiobus.c
==============================================================================
--- head/sys/dev/ow/owc_gpiobus.c       Tue Dec 10 20:51:28 2019        
(r355597)
+++ head/sys/dev/ow/owc_gpiobus.c       Tue Dec 10 21:48:21 2019        
(r355598)
@@ -131,7 +131,7 @@ owc_gpiobus_attach(device_t dev)
                free(kids, M_TEMP);
        if (nkid == 0)
                device_add_child(dev, "ow", -1);
-       bus_generic_attach(dev);
+       config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
 
        return (0);
 }
_______________________________________________
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