|
@@ -2229,6 +2229,10 @@ int cnss_pci_call_driver_probe(struct cnss_pci_data *pci_priv)
|
|
|
return -ENODEV;
|
|
|
|
|
|
plat_priv = pci_priv->plat_priv;
|
|
|
+ if (test_bit(CNSS_IN_REBOOT, &plat_priv->driver_state)) {
|
|
|
+ cnss_pr_err("Reboot is in progress, skip driver probe\n");
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
|
|
|
if (test_bit(CNSS_DRIVER_DEBUG, &plat_priv->driver_state)) {
|
|
|
clear_bit(CNSS_DRIVER_RECOVERY, &plat_priv->driver_state);
|