Prechádzať zdrojové kódy

cnss2: Complete power_up event on probe failure

Complete power_up event on probe failure to avoid timeout while
waiting for this event during unregister of host driver.

Change-Id: Ie262305ef960ab40cd38b4a695d409eb36fcf0d7
CRs-Fixed: 3565756
Naman Padhiar 1 rok pred
rodič
commit
4561632548
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      cnss2/pci.c

+ 1 - 0
cnss2/pci.c

@@ -2828,6 +2828,7 @@ int cnss_pci_call_driver_probe(struct cnss_pci_data *pci_priv)
 		if (ret) {
 			cnss_pr_err("Failed to probe host driver, err = %d\n",
 				    ret);
+			complete_all(&plat_priv->power_up_complete);
 			goto out;
 		}
 		clear_bit(CNSS_DRIVER_LOADING, &plat_priv->driver_state);