svn commit: r355598 - head/sys/dev/ow
Ian Lepore
ian at FreeBSD.org
Tue Dec 10 21:48:22 UTC 2019
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);
}
More information about the svn-src-head
mailing list