ichsmb: defer smbus attach until interrupts are available
This fixes a "timed sleep before timers are working" panic seen while attaching jedec_dimm(4) instances too early in the boot. Submitted by: ian Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D21452
This commit is contained in:
parent
3485f4574e
commit
2051169a4f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351604
@ -131,11 +131,8 @@ ichsmb_attach(device_t dev)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* Attach "smbus" child */
|
||||
if ((error = bus_generic_attach(dev)) != 0) {
|
||||
device_printf(dev, "failed to attach child: %d\n", error);
|
||||
goto fail;
|
||||
}
|
||||
/* Probe and attach the smbus when interrupts are available */
|
||||
config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
|
||||
|
||||
return (0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user