Add support for child devices that aren't ports.
Invoke any identify routines of child drivers during attach before attaching children, and delete any remaining devices after deleting ports. MFC after: 1 month Sponsored by: Chelsio Communications
This commit is contained in:
parent
04794d246a
commit
720e7bb69c
@ -1186,6 +1186,12 @@ t4_attach(device_t dev)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rc = bus_generic_probe(dev);
|
||||||
|
if (rc != 0) {
|
||||||
|
device_printf(dev, "failed to probe child drivers: %d\n", rc);
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
rc = bus_generic_attach(dev);
|
rc = bus_generic_attach(dev);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
device_printf(dev,
|
device_printf(dev,
|
||||||
@ -1339,6 +1345,8 @@ t4_detach_common(device_t dev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
device_delete_children(dev);
|
||||||
|
|
||||||
if (sc->flags & FULL_INIT_DONE)
|
if (sc->flags & FULL_INIT_DONE)
|
||||||
adapter_full_uninit(sc);
|
adapter_full_uninit(sc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user