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
This commit is contained in:
Ian Lepore 2019-12-10 21:48:21 +00:00
parent d7190ba048
commit f24f20f435

View File

@ -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);
}