Browse Source

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 năm trước cách đây
mục cha
commit
211a0c13bc
1 tập tin đã thay đổi với 7 bổ sung2 xóa
  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;
 }
 
 /**