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:
jhb 2017-05-16 23:18:50 +00:00
parent c28f4b3efa
commit 3b9fd823d7

View File

@ -1186,6 +1186,12 @@ t4_attach(device_t dev)
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);
if (rc != 0) {
device_printf(dev,
@ -1339,6 +1345,8 @@ t4_detach_common(device_t dev)
}
}
device_delete_children(dev);
if (sc->flags & FULL_INIT_DONE)
adapter_full_uninit(sc);