瀏覽代碼

msm: ipa: Fix to set holb discard

As part of HOLB monitoring, uc will clear the HOLB discard if
it was set as part of HOLB monitoring or it can clear if
peripheral recovers just before receiving HOLB_DEL command.
Make change to set HOLB discard back if it was intended to be
configured from AP as part of disconnect scenarios.

Change-Id: I6659a62499150844c3b540fadb4ba8b9535f5e45
Signed-off-by: Chaitanya Pratapa <[email protected]>
Chaitanya Pratapa 4 年之前
父節點
當前提交
cdca892ba0
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      drivers/platform/msm/ipa/ipa_v3/ipa_utils.c

+ 7 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_utils.c

@@ -9055,6 +9055,13 @@ static int __ipa3_stop_gsi_channel(u32 clnt_hdl)
 		if (res)
 			IPAERR("Delete HOLB monitor failed for ch %d\n",
 					ep->gsi_chan_hdl);
+		/* Set HOLB back if it was set previously.
+		 * There is a possibility that uC will reset as part of HOLB
+		 * monitoring.
+		 */
+		 if (ep->holb.en) {
+		 	ipa3_cfg_ep_holb(clnt_hdl, &ep->holb);
+		 }
 	}
 	memset(&mem, 0, sizeof(mem));