At this point the device is usually not fully set up yet and cannot handle
state changes / bringup
Signed-off-by: Felix Fietkau <nbd@nbd.name>
return ret;
system_if_clear_state(dev);
- device_check_state(dev);
return 0;
}
dev->default_config = true;
if (external)
system_if_apply_settings(dev, &dev->settings, dev->settings.flags);
+
+ device_check_state(dev);
+
return dev;
}
dev->type->config_init(dev);
dev->config_pending = false;
+ device_check_state(dev);
}
}
dev->config_pending = false;
}
+ device_check_state(dev);
+
return dev;
}