浏览代码

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 年之前
父节点
当前提交
4561632548
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);