Now that all architectures allow hooks to be inserted before
configure_final(), assert that "cold" is true in usb_cold_explore() when there are busses to explore. When USB is kldloaded after boot, usb_cold_explore() will still get invoked but the list of busses to explore in that case should always be empty.
This commit is contained in:
parent
d19a25b5b3
commit
4c11f583a3
@ -958,12 +958,8 @@ usb_cold_explore(void *arg)
|
||||
{
|
||||
struct usb_softc *sc;
|
||||
|
||||
/* XXX, on some archs this is called too late. */
|
||||
if (!cold) {
|
||||
printf("usb_cold_explore: skipping because !cold\n");
|
||||
return;
|
||||
}
|
||||
|
||||
KASSERT(cold || TAILQ_EMPTY(&usb_coldexplist),
|
||||
("usb_cold_explore: busses to explore when !cold"));
|
||||
while (!TAILQ_EMPTY(&usb_coldexplist)) {
|
||||
sc = TAILQ_FIRST(&usb_coldexplist);
|
||||
TAILQ_REMOVE(&usb_coldexplist, sc, sc_coldexplist);
|
||||
|
Loading…
x
Reference in New Issue
Block a user