浏览代码

qcacmn: Return error incase of hif bus runtime resume

For hif_bus_resume till now driver does panic whenever there is
failure. This is now handled in the cnss driver which will collect
the required dump to debug the link down.

Remove the bug_on, just log and return the status.

Change-Id: Ief4d86dd76c0bbde361b69b38894a944eec05aae
CRs-Fixed: 2765117
Arun Kumar Khandavalli 4 年之前
父节点
当前提交
211a0c13bc
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      hif/src/hif_runtime_pm.c

+ 7 - 2
hif/src/hif_runtime_pm.c

@@ -873,9 +873,14 @@ void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx)
  */
 int hif_runtime_resume(struct hif_opaque_softc *hif_ctx)
 {
+	int errno;
+
 	QDF_BUG(!hif_bus_resume_noirq(hif_ctx));
-	QDF_BUG(!hif_bus_resume(hif_ctx));
-	return 0;
+	errno = hif_bus_resume(hif_ctx);
+	if (errno)
+		HIF_ERROR("%s: failed runtime resume: %d", __func__, errno);
+
+	return errno;
 }
 
 /**